vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1  
2 AceGUICheckButton = AceGUIElement:new()
3  
4 function AceGUICheckButton:SetValue(val)
5 self:SetChecked(val)
6 end
7  
8 function AceGUICheckButton:OnEnter()
9 if( self._def.tooltip ) then self:ShowTooltip(self, self._def.tooltip) end
10 end
11  
12 function AceGUICheckButton:OnLeave()
13 if( GameTooltip:IsVisible() ) then GameTooltip:Hide() end
14 end
15  
16  
17 AceGUICheckBox = AceGUICheckButton:new()
18  
19 function AceGUICheckBox:Setup()
20 if( not self._def.elements ) then self._def.elements = {} end
21 local elements = self._def.elements
22 elements.Label = {type = ACEGUI_FONSTRING}
23 end
24  
25 function AceGUICheckBox:Configure()
26 self:SetLabel()
27 end