more ButtonFacade integration

This commit is contained in:
Hendrik Leppkes
2008-04-12 11:07:42 +00:00
parent 9de4526d6c
commit a889dd57c1
4 changed files with 31 additions and 11 deletions
+2
View File
@@ -46,6 +46,7 @@ function Bartender4.Button:Create(id, parent)
button.Proxy:SetPushedTexture("")
button.Proxy:SetHighlightTexture("")
button.Proxy:SetCheckedTexture("")
button.Proxy:Show()
local NormalTexture = button.Proxy:GetNormalTexture()
NormalTexture:SetWidth(66)
@@ -411,6 +412,7 @@ function Button:SetTooltip()
end
function Button:ShowButton()
if self.Proxy:IsShown() then return end
self.pushedTexture:SetTexture(self.textureCache.pushed)
self.highlightTexture:SetTexture(self.textureCache.highlight)