diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-08-07 10:14:50 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-08-07 10:14:50 -0400 |
commit | b213a07a77d7a0ab0d4a092a213d0e31b6611ace (patch) | |
tree | 4ee1d85365365c0e6b0007e1beb082875abc0669 /indra/llui/llfloaterreglistener.cpp | |
parent | da30bd882dd8fbf33215726efd90e53209481f1c (diff) | |
parent | f8c70f4855b4163c82aa7c2e0cc07a5cd81a206f (diff) |
Merge branch 'release/luau-scripting' into viewer-lua-smoother
Diffstat (limited to 'indra/llui/llfloaterreglistener.cpp')
-rw-r--r-- | indra/llui/llfloaterreglistener.cpp | 11 |
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. |