comparison gui.lua @ 23:8664134bba4f

Add '/ouroloot ping' command, same functionality as button in options panel.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Fri, 09 Sep 2011 00:56:13 +0000
parents d89aeb6b9f9e
children 61d932f0e8f2
comparison
equal deleted inserted replaced
22:33ce273687ab 23:8664134bba4f
1660 1660
1661 w = mkbutton("Ping!", 1661 w = mkbutton("Ping!",
1662 [[Asks other raid users for their addon version and current status. Results displayed on User Options panel.]]) 1662 [[Asks other raid users for their addon version and current status. Results displayed on User Options panel.]])
1663 w:SetFullWidth(true) 1663 w:SetFullWidth(true)
1664 w:SetCallback("OnClick", function(_w) 1664 w:SetCallback("OnClick", function(_w)
1665 addon:Print("Give me a ping, Vasili. One ping only, please.")
1666 addon.sender_list.active = {}
1667 addon.sender_list.names = {}
1668 _w:SetText("5... 4... 3...") 1665 _w:SetText("5... 4... 3...")
1669 _w:SetDisabled(true) 1666 _w:SetDisabled(true)
1670 addon:broadcast('ping') 1667 addon:DoPing()
1671 addon:ScheduleTimer(function(b) 1668 addon:ScheduleTimer(function(b)
1672 if b:IsVisible() then 1669 if b:IsVisible() then
1673 return addon:redisplay() 1670 return addon:redisplay()
1674 --return tabs_OnGroupSelected_func(container,"OnGroupSelected","opt") 1671 --return tabs_OnGroupSelected_func(container,"OnGroupSelected","opt")
1675 end 1672 end