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(...)