From ddc11d864e2e99c57e8cc2a15b9a3aa6c751686b Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Wed, 18 Jun 2008 09:35:17 +0000 Subject: [PATCH] re-implement the hide macrotext option, should all be working now again --- Button.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Button.lua b/Button.lua index cc98c74..f66ae68 100644 --- a/Button.lua +++ b/Button.lua @@ -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