summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/require/UI.lua
diff options
context:
space:
mode:
authornat-goodspeed <nat@lindenlab.com>2024-08-07 11:40:21 -0400
committerGitHub <noreply@github.com>2024-08-07 11:40:21 -0400
commit10799e968aa562078519346594732fc62714c1db (patch)
tree9f0c16833ab6a72e0232a116e6f073e3a40e9b3b /indra/newview/scripts/lua/require/UI.lua
parentf8c70f4855b4163c82aa7c2e0cc07a5cd81a206f (diff)
parentba57f099642ff2e8e74150bc1d92e40a72b9b243 (diff)
Merge pull request #2218 from secondlife/lua-ui-tweak
Rename 'UI' 'getParents' op to 'getTopMenus', add UI.lua function.
Diffstat (limited to 'indra/newview/scripts/lua/require/UI.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'