summaryrefslogtreecommitdiff
path: root/indra/llui/llfloaterreglistener.cpp
diff options
context:
space:
mode:
authornat-goodspeed <nat@lindenlab.com>2024-08-07 09:49:58 -0400
committerGitHub <noreply@github.com>2024-08-07 09:49:58 -0400
commitf8c70f4855b4163c82aa7c2e0cc07a5cd81a206f (patch)
tree39666d91f78367961d1e9dccb63fcb096f6198c2 /indra/llui/llfloaterreglistener.cpp
parent628cd605080546c400d3343bf0834bebf693bbcf (diff)
parenteb82c78b071d71a0fd2d7be1c573997e41bab51e (diff)
Merge pull request #2198 from secondlife/lua-ui-visibility
Lua UI visibility api
Diffstat (limited to 'indra/llui/llfloaterreglistener.cpp')
-rw-r--r--indra/llui/llfloaterreglistener.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/llui/llfloaterreglistener.cpp b/indra/llui/llfloaterreglistener.cpp
index 8316101264..e17f9f4dd6 100644
--- a/indra/llui/llfloaterreglistener.cpp
+++ b/indra/llui/llfloaterreglistener.cpp
@@ -80,6 +80,11 @@ LLFloaterRegListener::LLFloaterRegListener():
add("getFloaterEvents",
"Return the table of Lua Floater events which are send to the script",
&LLFloaterRegListener::getLuaFloaterEvents);
+
+ add("getFloaterNames",
+ "Return the table of all registered floaters",
+ &LLFloaterRegListener::getFloaterNames,
+ llsd::map("reply", LLSD()));
}
void LLFloaterRegListener::getBuildMap(const LLSD& event) const
@@ -121,6 +126,12 @@ void LLFloaterRegListener::instanceVisible(const LLSD& event) const
event);
}
+
+void LLFloaterRegListener::getFloaterNames(const LLSD &event) const
+{
+ Response response(llsd::map("floaters", LLFloaterReg::getFloaterNames()), event);
+}
+
void LLFloaterRegListener::clickButton(const LLSD& event) const
{
// If the caller requests a reply, build the reply.