Fix showing of the icon for special buttons
This commit is contained in:
@@ -191,6 +191,13 @@ function onUpdate(self, elapsed)
|
|||||||
end
|
end
|
||||||
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
|
Button.SetRealNormalTexture = Button.SetNormalTexture
|
||||||
function Button:SetNormalTexture(...)
|
function Button:SetNormalTexture(...)
|
||||||
self.normalTexture:SetTexture(...)
|
self.normalTexture:SetTexture(...)
|
||||||
|
|||||||
Reference in New Issue
Block a user