summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/test_toolbars.lua
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/scripts/lua/test_toolbars.lua')
-rw-r--r--indra/newview/scripts/lua/test_toolbars.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/scripts/lua/test_toolbars.lua b/indra/newview/scripts/lua/test_toolbars.lua
index 70035db775..9a832c5644 100644
--- a/indra/newview/scripts/lua/test_toolbars.lua
+++ b/indra/newview/scripts/lua/test_toolbars.lua
@@ -3,16 +3,17 @@ UI = require 'UI'
local OK = 'OK_okcancelbuttons'
local BUTTONS = UI.getToolbarBtnNames()
+local TOOLBARS = {'left','right','bottom'}
-- Clear the toolbars and then add the toolbar buttons to the random toolbar
response = popup:alertYesCancel('Toolbars will be randomly reshuffled. Proceed?')
if next(response) == OK then
- UI.clearToolbars()
+ UI.clearAllToolbars()
math.randomseed(os.time())
-- add the buttons to the random toolbar
for i = 1, #BUTTONS do
- UI.addToolbarBtn(BUTTONS[i], math.random(3))
+ UI.addToolbarBtn(BUTTONS[i], TOOLBARS[math.random(3)])
end
-- remove some of the added buttons from the toolbars