1 - Mod conflicts
What is the issue?
Please provide any additional information below.
Currently, your mod somehow conflicts with both BetterCC and Wikki's Cooldown Pulse. Not sure why, but sure makes using the mods frustrating!
| User | When | Change |
|---|---|---|
| oamer | Mon, 27 Oct 2008 00:48:17 | Create |
- 2 comments
- 2 comments
- #2
Thrae Wed, 05 Nov 2008 00:33:24How to fix BetterCC:
- Open up BetterCC.lua
- Replace with contents below:
I take no ownership or responsibility for these edits.
- #1
wikki Mon, 27 Oct 2008 18:07:35Heya, I was the one that found the conflict, when I was looking into an issue one of my users was reporting.
When you replace the function ActionButton.UpdateCooldownAnimation in this call: ActionButton.UpdateCooldownAnimation = BetterCC.BetterCCAnim
You never store the original function to be called later on. This becomes an issue when your addon is loaded as the last addon to overwrite this function.
I would suggest something similar to this that I use in Aura: AuraEngine.__ActionButton_UpdateCooldownAnimation = ActionButton.UpdateCooldownAnimation ActionButton.UpdateCooldownAnimation = AuraEngine.UpdateAbilityCooldownTimer
I store the old function, replace the old with mine. As a note, the old function doesnt necessarily have to be the default UI one, it could very well be yours, or any other addon that overwrites it.
Then when the function gets called:
function AuraEngine.UpdateAbilityCooldownTimer( self, timeElapsed, updateCooldown )
-- Call the original function
AuraEngine.__ActionButton_UpdateCooldownAnimation( self, timeElapsed, updateCooldown )
-- Do our work here
The other thing to note when doing this is to not modify data that other addons could use to process their work.