vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1  
2 AceGUIButton = AceGUIElement:new()
3  
4 function AceGUIButton:Configure()
5 self:SetLabel()
6 end
7  
8 function AceGUIButton:SetLabel(text)
9 if( (not text) and (not self._def.title) ) then return end
10 self:SetText(text or self._def.title)
11 end
12  
13 function AceGUIButton:SetValue(val)
14 if( self.Text ) then
15 self.Text:SetText(val or "")
16 else
17 self:SetText(val or "")
18 end
19 end