diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-03-15 21:11:39 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2024-03-15 21:13:35 +0200 |
commit | 5a6ec3e26ad9a6fb33e18a3d0198482c0685a4fa (patch) | |
tree | 9303750372967dced1f06d1e5d9b6f8a64bce317 /indra/newview/scripts/lua/UI.lua | |
parent | fdfff5305bc9d97bb27d36a7fe18bab693e42aed (diff) | |
parent | c5dec705cf6bb3dce9381c9ec574335356051297 (diff) |
Merge branch 'release/luau-scripting' into lua-floater
Diffstat (limited to 'indra/newview/scripts/lua/UI.lua')
-rw-r--r-- | indra/newview/scripts/lua/UI.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/indra/newview/scripts/lua/UI.lua b/indra/newview/scripts/lua/UI.lua new file mode 100644 index 0000000000..f851632bad --- /dev/null +++ b/indra/newview/scripts/lua/UI.lua @@ -0,0 +1,16 @@ +-- Engage the UI LLEventAPI + +leap = require 'leap' + +local UI = {} + +function UI.call(func, parameter) + -- 'call' is fire-and-forget + leap.send('UI', {op='call', ['function']=func, parameter=parameter}) +end + +function UI.getValue(path) + return leap.request('UI', {op='getValue', path=path})['value'] +end + +return UI |