From ff11807e39a454529a482468762991a97b24f6d7 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sun, 9 Nov 2008 15:46:59 +0100 Subject: [PATCH] Fix showing of the icon for special buttons --- ActionButton.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ActionButton.lua b/ActionButton.lua index d08ab70..f7d4af6 100644 --- a/ActionButton.lua +++ b/ActionButton.lua @@ -191,6 +191,13 @@ function onUpdate(self, elapsed) end end +local function updateSpecialIcon(self) + if self.action and specialButtons[self.action] then + self.icon:SetTexture(specialButtons[self.action].icon) + end +end +hooksecurefunc("ActionButton_Update", updateSpecialIcon) + Button.SetRealNormalTexture = Button.SetNormalTexture function Button:SetNormalTexture(...) self.normalTexture:SetTexture(...)