Kaishi
12-04-2008, 03:20 PM
While playing around with my action bars and tweaking NAMBLA, I coded this small addon up.
It very cleanly removes the Global Cooldown timer from your action bars. (works with other action bar mods that modify the "ActionButton.UpdateCooldownAnimation" function). It has been tested with NAMBLA, but it should work with any action bar mod.
This makes it so your whole bar does not flash or enter the cooldown state when the global cooldown tiggers.
http://war.curse.com/downloads/war-addons/details/gcdremove.aspx
With the addon: http://static.curseforge.net/uploads/19/11/645/DefaultAB_SS.jpg
Without the addon: http://static.curseforge.net/uploads/19/11/648/Without_SS.png
Tada.
It works by pre-hooking ActionButton.UpdateCooldownAnimation and detecting cooldowns due to Global Cooldown (self.m_MaxCooldown == 1.5000...). If a GCD cooldown is detect it sets the cooldown time to 0, and tells the subsequent UpdateCooldownAnimation code not to update that ActionButton. This esentially prevents GCD from modifying your actionbuttons at all.
It very cleanly removes the Global Cooldown timer from your action bars. (works with other action bar mods that modify the "ActionButton.UpdateCooldownAnimation" function). It has been tested with NAMBLA, but it should work with any action bar mod.
This makes it so your whole bar does not flash or enter the cooldown state when the global cooldown tiggers.
http://war.curse.com/downloads/war-addons/details/gcdremove.aspx
With the addon: http://static.curseforge.net/uploads/19/11/645/DefaultAB_SS.jpg
Without the addon: http://static.curseforge.net/uploads/19/11/648/Without_SS.png
Tada.
It works by pre-hooking ActionButton.UpdateCooldownAnimation and detecting cooldowns due to Global Cooldown (self.m_MaxCooldown == 1.5000...). If a GCD cooldown is detect it sets the cooldown time to 0, and tells the subsequent UpdateCooldownAnimation code not to update that ActionButton. This esentially prevents GCD from modifying your actionbuttons at all.