summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-08-07 10:39:30 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-08-07 10:39:30 -0400
commit5fde031b876e3b8ce794286e5796ffb8f0614cd3 (patch)
tree9f0c16833ab6a72e0232a116e6f073e3a40e9b3b /indra/newview/scripts/lua
parenteb82c78b071d71a0fd2d7be1c573997e41bab51e (diff)
Rename 'UI' 'getParents' op to 'getTopMenus', add UI.lua function.
Also update the 'UI' help text to reflect its more general nature. Mention 0-relative rank in the xxToolbarBtn operation help text.
Diffstat (limited to 'indra/newview/scripts/lua')
-rw-r--r--indra/newview/scripts/lua/require/UI.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/scripts/lua/require/UI.lua b/indra/newview/scripts/lua/require/UI.lua
index 9bc9a3685d..464e6547ea 100644
--- a/indra/newview/scripts/lua/require/UI.lua
+++ b/indra/newview/scripts/lua/require/UI.lua
@@ -144,6 +144,10 @@ end
-- Top menu
-- ***************************************************************************
+function UI.getTopMenus()
+ return leap.request('UI', {op='getTopMenus'}).menus
+end
+
function UI.addMenu(...)
local args = mapargs('name,label', ...)
args.op = 'addMenu'