summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/require
diff options
context:
space:
mode:
authornat-goodspeed <nat@lindenlab.com>2024-08-02 09:41:48 -0400
committerGitHub <noreply@github.com>2024-08-02 09:41:48 -0400
commit3591afb2a8eba2599d76f3f41d413c882634f017 (patch)
treeea55aac81fd391c0b13e71928d3db9967e775d68 /indra/newview/scripts/lua/require
parentb0208049fe5e1d84589f994dcd66571f92730305 (diff)
parent6396db7d83c36456e34812deff9e89850f0d9df2 (diff)
Merge pull request #2174 from secondlife/lua-callables
Add UI.callables() and corresponding entry point.
Diffstat (limited to 'indra/newview/scripts/lua/require')
-rw-r--r--indra/newview/scripts/lua/require/UI.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/scripts/lua/require/UI.lua b/indra/newview/scripts/lua/require/UI.lua
index 28488ff3e1..06b49c6269 100644
--- a/indra/newview/scripts/lua/require/UI.lua
+++ b/indra/newview/scripts/lua/require/UI.lua
@@ -14,6 +14,10 @@ function UI.call(func, parameter)
leap.request('UI', {op='call', ['function']=func, parameter=parameter})
end
+function UI.callables()
+ return leap.request('UI', {op='callables'}).callables
+end
+
function UI.getValue(path)
return leap.request('UI', {op='getValue', path=path})['value']
end
@@ -152,6 +156,7 @@ function UI.addMenuBranch(...)
return leap.request('UI', args)
end
+-- see UI.callables() for valid values of 'func'
function UI.addMenuItem(...)
local args = mapargs('name,label,parent_menu,func,param', ...)
args.op = 'addMenuItem'
@@ -163,4 +168,5 @@ function UI.addMenuSeparator(...)
args.op = 'addMenuSeparator'
return leap.request('UI', args)
end
+
return UI