summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/require/UI.lua
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2024-08-05 20:37:03 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2024-08-05 20:37:03 +0300
commitcf29b701b19644062a1428a64023c3cf9829e2de (patch)
tree0852f0b9b7699dbf4756a3fae6ef4a65dc3bae8f /indra/newview/scripts/lua/require/UI.lua
parenta67a01240cbd58a1800290294be83e7b874fefb6 (diff)
Allow getting the list of floater names, hide top menu items; add demo script
Diffstat (limited to 'indra/newview/scripts/lua/require/UI.lua')
-rw-r--r--indra/newview/scripts/lua/require/UI.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/scripts/lua/require/UI.lua b/indra/newview/scripts/lua/require/UI.lua
index df77eb2b56..df76b1501c 100644
--- a/indra/newview/scripts/lua/require/UI.lua
+++ b/indra/newview/scripts/lua/require/UI.lua
@@ -150,6 +150,10 @@ function UI.addMenu(...)
return leap.request('UI', args)
end
+function UI.setMenuVisible(name, visible)
+ return leap.request('UI', {op='setMenuVisible', name=name, visible=visible})
+end
+
function UI.addMenuBranch(...)
local args = mapargs('name,label,parent_menu', ...)
args.op = 'addMenuBranch'
@@ -222,4 +226,8 @@ function UI.closeAllFloaters()
return leap.send("UI", {op = "closeAllFloaters"})
end
+function UI.getFloaterNames()
+ return leap.request("LLFloaterReg", {op = "getFloaterNames"}).floaters
+end
+
return UI