summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-06-21 15:11:57 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-06-21 15:11:57 -0400
commit56e4b8c5f637343c8a1a181fd59324e033b4782d (patch)
treedf77079b8da7ba5d6d3523ea9d9466f104bf66dd /indra/newview/scripts/lua
parent8fa98f095a89778cd3153f3ee88f5626fc5a0d02 (diff)
Exercise the simple popup.lua APIs
Diffstat (limited to 'indra/newview/scripts/lua')
-rw-r--r--indra/newview/scripts/lua/test_popup.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/scripts/lua/test_popup.lua b/indra/newview/scripts/lua/test_popup.lua
new file mode 100644
index 0000000000..e48f89c3a7
--- /dev/null
+++ b/indra/newview/scripts/lua/test_popup.lua
@@ -0,0 +1,6 @@
+popup = require 'popup'
+
+response = popup:alert('This just has a Close button')
+response = popup:alertOK(string.format('You said "%s", is that OK?', next(response)))
+response = popup:alertYesCancel(string.format('You said "%s"', next(response)))
+popup:tip(string.format('You said "%s"', next(response)))