summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/test_luafloater_gesture_list.lua
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2024-03-21 18:26:48 +0200
committerMnikolenko Productengine <mnikolenko@productengine.com>2024-03-21 18:26:48 +0200
commit76752d6fc00a2789d96480da2a1e862ffecc812a (patch)
treeb89ca296b1c58185bee56e32bf549610fc50945b /indra/newview/scripts/lua/test_luafloater_gesture_list.lua
parentba6784647b53919c09ef339fd99af152aa0f8458 (diff)
Switch to LLDispatchListener
Diffstat (limited to 'indra/newview/scripts/lua/test_luafloater_gesture_list.lua')
-rw-r--r--indra/newview/scripts/lua/test_luafloater_gesture_list.lua14
1 files changed, 9 insertions, 5 deletions
diff --git a/indra/newview/scripts/lua/test_luafloater_gesture_list.lua b/indra/newview/scripts/lua/test_luafloater_gesture_list.lua
index 5ea2b1e30d..57f737ce9b 100644
--- a/indra/newview/scripts/lua/test_luafloater_gesture_list.lua
+++ b/indra/newview/scripts/lua/test_luafloater_gesture_list.lua
@@ -40,6 +40,15 @@ function handleEvents(event_data)
end
end
+local key = {xml_path = XML_FILE_PATH, op = "showLuaFloater"}
+--receive additional events for defined control {<control_name>= {action1, action2, ...}}
+key.extra_events={gesture_list = {e.DOUBLE_CLICK_EVENT}}
+coro.launch(function ()
+ handleEvents(leap.request("LLFloaterReg", key))
+ leap.done()
+end)
+leap.process()
+
catch_events = leap.WaitFor:new(-1, "all_events")
function catch_events:filter(pump, data)
return data
@@ -53,10 +62,5 @@ function process_events(waitfor)
end
end
-local key = {xml_path = XML_FILE_PATH, op = "showLuaFloater"}
---receive additional events for defined control {<control_name>= {action1, action2, ...}}
-key.extra_events={gesture_list = {e.DOUBLE_CLICK_EVENT}}
-leap.send("LLFloaterReg", key, "floater1")
-
coro.launch(process_events, catch_events)
leap.process()