Mercurial > wow > hansgar_and_franzok_assist
comparison Libs/DF/button.lua @ 58:0682d738499b v8.0.1.058
- 8.0.1 Update.
| author | Tercio |
|---|---|
| date | Fri, 20 Jul 2018 19:04:12 -0300 |
| parents | 307f5af3ad02 |
| children |
comparison
equal
deleted
inserted
replaced
| 57:b1c62eed8999 | 58:0682d738499b |
|---|---|
| 402 return self.button:SetFrameLevel (framelevel) | 402 return self.button:SetFrameLevel (framelevel) |
| 403 end | 403 end |
| 404 end | 404 end |
| 405 | 405 |
| 406 -- icon | 406 -- icon |
| 407 function ButtonMetaFunctions:GetIconTexture() | |
| 408 if (self.icon) then | |
| 409 return self.icon:GetTexture() | |
| 410 end | |
| 411 end | |
| 412 | |
| 407 function ButtonMetaFunctions:SetIcon (texture, width, height, layout, texcoord, overlay, textdistance, leftpadding, textheight, short_method) | 413 function ButtonMetaFunctions:SetIcon (texture, width, height, layout, texcoord, overlay, textdistance, leftpadding, textheight, short_method) |
| 408 if (not self.icon) then | 414 if (not self.icon) then |
| 409 self.icon = self:CreateTexture (nil, "artwork") | 415 self.icon = self:CreateTexture (nil, "artwork") |
| 410 self.icon:SetSize (self.height*0.8, self.height*0.8) | 416 self.icon:SetSize (self.height*0.8, self.height*0.8) |
| 411 self.icon:SetPoint ("left", self.widget, "left", 4 + (leftpadding or 0), 0) | 417 self.icon:SetPoint ("left", self.widget, "left", 4 + (leftpadding or 0), 0) |
