diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2024-06-21 15:11:57 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2024-06-21 15:11:57 -0400 |
commit | 56e4b8c5f637343c8a1a181fd59324e033b4782d (patch) | |
tree | df77079b8da7ba5d6d3523ea9d9466f104bf66dd /indra/newview/scripts | |
parent | 8fa98f095a89778cd3153f3ee88f5626fc5a0d02 (diff) |
Exercise the simple popup.lua APIs
Diffstat (limited to 'indra/newview/scripts')
-rw-r--r-- | indra/newview/scripts/lua/test_popup.lua | 6 |
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))) |