comparison gui.lua @ 8:30ba1f35e164

Minor tweaks, fold in reload
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Fri, 17 Jun 2011 00:13:35 +0000
parents 9a37bd40eb5e
children 4fba9c6b5d3d
comparison
equal deleted inserted replaced
7:9a37bd40eb5e 8:30ba1f35e164
1375 simple:AddChild(w) 1375 simple:AddChild(w)
1376 w = mkbutton("Clear All & Reload", 1376 w = mkbutton("Clear All & Reload",
1377 [[No confirmation! |cffff1010Erases absolutely all> Ouro Loot saved variables and reloads the UI.]]) 1377 [[No confirmation! |cffff1010Erases absolutely all> Ouro Loot saved variables and reloads the UI.]])
1378 w:SetFullWidth(true) 1378 w:SetFullWidth(true)
1379 w:SetCallback("OnClick", function() 1379 w:SetCallback("OnClick", function()
1380 addon:_clear_SVs() 1380 addon:_clear_SVs() -- reloads
1381 ReloadUI()
1382 end) 1381 end)
1383 simple:AddChild(w) 1382 simple:AddChild(w)
1384 grp:AddChild(simple) 1383 grp:AddChild(simple)
1385 1384
1386 simple = GUI:Create("SimpleGroup") 1385 simple = GUI:Create("SimpleGroup")