Originally Posted by
Schmilblick
How to make spell icons grayed / transparent when off CD ? thank you in advance.
Here's what you need to do.
1. In your aura, go to the "Animations" tab.
2. Under "Main", change the "type" to "Custom".
3. To the right of the "type" dropdown, you can change the time - in seconds - to 0.
4. Check the "Fade" checkbox.
5. Change the "type" to "Custom Function"
6. Click "Expand Text Editor"
7. Copy and paste the following
Code:
function(progress, start, delta)
local start,duration = GetSpellCooldown(INSERT_SPELL_ID);
if (duration == 0 or duration <= 1.5) then
return 0.5;
else
return 1;
end
end
NOTE: You will need to either input the name of the Spell, or its ID. You can find the spell's ID by mousing over the spell and the ID should show in the bottom-left area of the spell's tooltip. When you locate the ID, simply change "INSERT_SPELL_ID" to the spell's ID.