Fix showing of the icon for special buttons

This commit is contained in:
Hendrik Leppkes
2008-11-09 15:46:59 +01:00
parent 293e41b7d2
commit ff11807e39
+7
View File
@@ -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(...)