!CooldownFader
Opacity effect on action buttons in cooldown.
Settings
Settings are available through the /cooldownfader and /cdf chat commands.
Usage:
/cooldownfader [name [value]]
| Name (case-sensitive) | Description | Default |
|---|---|---|
minDuration | CooldownFader ignores cooldowns with a duration lower or equal to this value | 1.5 seconds |
minAlpha | Minimal opacity of a faded button : 0 = fully transparent, 1 = fully opaque | 0.15 (15%) |
maxAlpha | Maximal opacity of a faded button : 0 = fully transparent, 1 = fully opaque | 1 (100%) |
effectDuration | Duration of the finishing animation. | 5 seconds |
A small explanation about effectDuration : if effectDuration is set to 5 seconds and the cooldown duration is 20 seconds, the button will be faded during (20-5) = 15 seconds and will start to come back 5 seconds before the cooldown ends.
-
View User Profile
-
Send Message
Posted Apr 27, 2013Is it possible to add support for spells with multiple charges? This addon fades them which makes it difficult to read the charges left.
-
View User Profile
-
Send Message
Posted Jun 1, 2013This is not possible. CF only adds fading to the default cooldown display. It has not knowlegde of the button over which it is displayed so it cannot disable itself for spells that have charges.
-
View User Profile
-
Send Message
Posted Jun 19, 2011Thanks in advance!
-
View User Profile
-
Send Message
Posted Mar 25, 2010First of all, thanks for writing this great addon. It's amazing what 50 lines of code can do. I have a small question, though. I would prefer to alter the behavior of your addon, so that it >>increases<< the visibility of buttons on cooldown.
So, what did I do? I did setup Bartender to show all its bars at 50% Alpha, and tried to tweak your addon to make icons on cooldown 100% visible. For this purpose, I modified the !CooldownFader function:
----------------------------------------------------------
local function updateAlpha(frame)
local remaining = frame.CF_end - GetTime()
if remaining <= 0 then
endCooldown(frame)
else
local alpha = FADED_ALPHA_VALUE + (1.0 - FADED_ALPHA_VALUE) * (1.0 - remaining / frame.CF_duration) ^ 3
frame:SetAlpha(frame.CF_alpha * alpha)
end
end
---------------------------------------------------------
So, again, I am after 100% alpha during the cooldown duration. So I modified
-----> frame:SetAlpha(frame.CF_alpha + alpha)
with
-----> frame:SetAlpha(1.0)
Hoping that the icon would become 100% visible (1.0 Alpha). However, what this change does is to keep the icon with the same alpha than the Bartender bar that holds the icon itself. For example, if Bartender was setup to 0.2 Alpha, after my tweak the cooldown icon will ALWAYS show at 0.2 alpha for the whole duration.
I know this is asking a bit too much, though I would appreciate pointers on how to achieve what I need.
Cheers.
-
View User Profile
-
Send Message
Posted Oct 25, 2009-
View User Profile
-
Send Message
Posted Jul 21, 2009-
View User Profile
-
Send Message
Posted Oct 31, 2008Although I cant find how to configure it, I'd like to set buttons to appear (start fading in) during the last 5 sec of CD. If CD is 2 min then it should stay transparent 1:55 and then start appearing, much easier to track in hardcore PvP