re-implement the hide macrotext option, should all be working now again

This commit is contained in:
Hendrik Leppkes
2008-06-18 09:35:17 +00:00
parent a9ff46637f
commit ddc11d864e
+6
View File
@@ -32,6 +32,7 @@ function Bartender4.Button:Create(id, parent)
button.hotkey = _G[("%sHotKey"):format(name)]
button.icon = _G[("%sIcon"):format(name)]
button.flash = _G[("%sFlash"):format(name)]
button.macroName = _G[("%sName"):format(name)]
button:SetNormalTexture("")
local oldNT = _G[("%sNormalTexture"):format(name)]
@@ -193,6 +194,11 @@ end
function Button:Update()
oor = nil
self:BlizzCall(ActionButton_Update)
if self.parent.config.hidemacrotext then
self.macroName:Hide()
else
self.macroName:Show()
end
end
orig_ActionButton_UpdateHotkeys = ActionButton_UpdateHotkeys