Update each button individually when changing spec (and on any other action change, if out of combat).
This commit is contained in:
+14
-1
@@ -257,7 +257,20 @@ local function updateIcon(self)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
hooksecurefunc("ActionButton_Update", updateIcon)
|
|
||||||
|
local function updateFunc(self)
|
||||||
|
updateIcon(self)
|
||||||
|
if self.BT4init and not InCombatLockdown() then
|
||||||
|
local parent = self:GetParent()
|
||||||
|
parent:SetFrameRef("upd", self)
|
||||||
|
parent:Execute([[
|
||||||
|
local frame = self:GetFrameRef("upd")
|
||||||
|
control:RunFor(frame, frame:GetAttribute("UpdateAutoAssist"))
|
||||||
|
]])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
hooksecurefunc("ActionButton_Update", updateFunc)
|
||||||
|
|
||||||
Button.SetRealNormalTexture = Button.SetNormalTexture
|
Button.SetRealNormalTexture = Button.SetNormalTexture
|
||||||
function Button:SetNormalTexture(...)
|
function Button:SetNormalTexture(...)
|
||||||
|
|||||||
Reference in New Issue
Block a user