more work done and fixes applied

This commit is contained in:
Hendrik Leppkes
2007-12-11 13:02:06 +00:00
parent 13300aae6e
commit 37520f8b58
5 changed files with 85 additions and 12 deletions
+8 -6
View File
@@ -34,13 +34,15 @@ function Bartender4.Button:Create(id, parent)
button.flash = _G[("%sFlash"):format(name)]
button.flash:Hide()
button:SetNormalTexture("")
local realNormalTexture = _G[("%sNormalTexture"):format(name)]
realNormalTexture:Hide()
--button:SetNormalTexture("")
--local realNormalTexture = _G[("%sNormalTexture"):format(name)]
button.normalTexture = button:CreateTexture(("%sBT4NormalTexture"):format(name))
button.normalTexture:SetAllPoints(realNormalTexture)
--button.normalTexture = button:CreateTexture(("%sBT4NormalTexture"):format(name))
--button.normalTexture:SetAllPoints(realNormalTexture)
--realNormalTexture:Hide()
button.normalTexture = button:GetNormalTexture() -- _G[("%sNormalTexture"):format(name)]
button.pushedTexture = button:GetPushedTexture()
button.highlightTexture = button:GetHighlightTexture()
@@ -66,7 +68,7 @@ function Bartender4.Button:Create(id, parent)
button:RegisterButtonEvents()
button:Show()
button:UpdateAction()
button:UpdateAction(true)
return button
end