diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-05-16 03:41:57 +0300 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-05-16 03:41:57 +0300 |
commit | 0212bae056419c10abdfac478188b52e61373609 (patch) | |
tree | 3a5809ba24b3253c016813204365bd97e305e25a /indra/newview/scripts/lua/UI.lua | |
parent | b1098308428873e927cbf3c956ed0a7f17dc439b (diff) | |
parent | c808d849aa6aa17db95a7814e6eb6bc5162ba816 (diff) |
Merge branch 'lua-ui-callbacks' into release/luau-scripting
Diffstat (limited to 'indra/newview/scripts/lua/UI.lua')
-rw-r--r-- | indra/newview/scripts/lua/UI.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/scripts/lua/UI.lua b/indra/newview/scripts/lua/UI.lua index f851632bad..6101c7a312 100644 --- a/indra/newview/scripts/lua/UI.lua +++ b/indra/newview/scripts/lua/UI.lua @@ -1,16 +1,17 @@ -- Engage the UI LLEventAPI leap = require 'leap' +util = require 'util' local UI = {} function UI.call(func, parameter) -- 'call' is fire-and-forget - leap.send('UI', {op='call', ['function']=func, parameter=parameter}) + util.check_response(leap.request('UI', {op='call', ['function']=func, parameter=parameter})) end function UI.getValue(path) - return leap.request('UI', {op='getValue', path=path})['value'] + return util.check_response(leap.request('UI', {op='getValue', path=path}))['value'] end return UI |