summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/UI.lua
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2024-05-31 20:03:13 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2024-05-31 20:03:13 +0300
commitf08a3c80d61795bb1fc0e576948bca3362ef8e6c (patch)
treef7bc69af107d2c06bff606770ae19053dcdff7c0 /indra/newview/scripts/lua/UI.lua
parent3fc2aa78f371f7f3da4a3c485293492c68e9b2c8 (diff)
Cherry-pick leap.lua changes; other clean up
Diffstat (limited to 'indra/newview/scripts/lua/UI.lua')
-rw-r--r--indra/newview/scripts/lua/UI.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/scripts/lua/UI.lua b/indra/newview/scripts/lua/UI.lua
index 6101c7a312..24f822bbd9 100644
--- a/indra/newview/scripts/lua/UI.lua
+++ b/indra/newview/scripts/lua/UI.lua
@@ -1,17 +1,16 @@
-- Engage the UI LLEventAPI
leap = require 'leap'
-util = require 'util'
local UI = {}
function UI.call(func, parameter)
-- 'call' is fire-and-forget
- util.check_response(leap.request('UI', {op='call', ['function']=func, parameter=parameter}))
+ leap.request('UI', {op='call', ['function']=func, parameter=parameter})
end
function UI.getValue(path)
- return util.check_response(leap.request('UI', {op='getValue', path=path}))['value']
+ return leap.request('UI', {op='getValue', path=path})['value']
end
return UI