Mercurial > wow > hansgar_and_franzok_assist
diff Libs/DF/button.lua @ 49:7d5934415ad0 r49-release
- framework update.
| author | Tercio |
|---|---|
| date | Wed, 05 Jul 2017 15:20:21 -0300 |
| parents | 7944c081e5b4 |
| children | 307f5af3ad02 |
line wrap: on
line diff
--- a/Libs/DF/button.lua Mon May 08 14:58:23 2017 -0300 +++ b/Libs/DF/button.lua Wed Jul 05 15:20:21 2017 -0300 @@ -394,7 +394,7 @@ end -- icon - function ButtonMetaFunctions:SetIcon (texture, width, height, layout, texcoord, overlay, textdistance, leftpadding, textheight) + function ButtonMetaFunctions:SetIcon (texture, width, height, layout, texcoord, overlay, textdistance, leftpadding, textheight, short_method) if (not self.icon) then self.icon = self:CreateTexture (nil, "artwork") self.icon:SetSize (self.height*0.8, self.height*0.8) @@ -427,9 +427,13 @@ local iconw = self.icon:GetWidth() local text_width = self.button.text:GetStringWidth() if (text_width > w-15-iconw) then - if (not short_method) then + + if (short_method == false) then + + elseif (not short_method) then local new_width = text_width+15+iconw self.button:SetWidth (new_width) + elseif (short_method == 1) then local loop = true local textsize = 11 @@ -443,6 +447,7 @@ textsize = textsize - 1 end end + end end @@ -1015,6 +1020,9 @@ textsize = textsize - 1 end end + + elseif (short_method == 2) then + end end
