Cooldown flash visible for hidden buttons when bar is not max length.
HonorWOW opened this issue ยท 0 comments
Addon Version
8.3.12-Retail
World of Warcraft Version
Live
Steps to reproduce:
- Put spells in all 12 buttons of DominosFrame1.
- Using /dominos config, shrink the size of that bar below 12.
- Reload your UI.
- Cast a spell that triggers the GCD.
Expected behavior:
- No cooldown flash appears for buttons that are not visible on the bar.
Actual behavior:
- The cooldown flash is visible for each hidden slot in the bar.
If you resize the bar (causing buttons to be attached/detached), this works correctly, until your UI is reloaded again. I don't know the Dominos code well, but I managed to work around this by adding
if (type(self.MaxLength) == 'function' and (newNumButtons < self:MaxLength())) then
for i = newNumButtons + 1, self:MaxLength() do
self:AttachButton(i)
self:DetachButton(i)
end
end
to ReloadButtons in core/buttonBar.lua, after the Attach/Detach loops. It's a pretty jank fix, though.