Download
(6 Kb)
Download
Updated: 12-08-09 08:37 AM
Pictures
File Info
Updated:12-08-09 08:37 AM
Created:11-15-09 12:37 PM
Downloads:2,974
Favorites:16
MD5:
SnowfallActionButton
Version: 1.2
by: Dayn [More]
This is an action button modification addon. Its primary purpose is to improve the visual status indications that the action buttons provide.


Cooldowns

The Blizzard UI shows cooldowns for abilities on action buttons, and these cooldowns are a combination of the true ability cooldown, the global cooldown, and power cooldowns (for abilities that use runes). This addon removes the display of global cooldown and power cooldown so that you see just the true ability cooldown. This is much more informative and less distracting than having the same global cooldown and power cooldown information repeated on every button. You will still want to have a global cooldown indicator somewhere in your UI, so make sure that you have a separate addon installed that displays the global cooldown (like Quartz or SnowfallRune).


Fading

The Blizzard UI fades action buttons when you do not have enough power (mana, rage, focus, energy, happiness, runes, or runic power) to activate the associated ability. This addon can disable the fading for any power types you choose (by default, only runes). This feature is particularly useful for runes, which would in the Blizzard UI cause your action buttons to fade/unfade very frequently, which is quite distracting and unhelpful. Do not use this feature with another addon's action button range indicator, because this feature will be overridden by the other addon and then be ineffectual. Instead, use the SnowfallActionButton range indicator.


Range indication

This addon shows a red overlay over an action button when the target is out of range. The red overlay will appear over the whole button whenever the action button hotkey text is red, so make sure that you haven't disabled the hotkey text color changing using some other addon.


Configuration

There is no in-game configuration. In order to configure the addon, copy the "Interface\Addons\SnowfallActionButton\SnowfallActionButtonSettings" folder and paste it at the "Interface\Addons" level. Congratulations, you have just created your very own addon called "SnowfallActionButtonSettings". Now edit the settings in "Interface\Addons\SnowfallActionButtonSettings\SnowfallActionButtonSettings.lua" to your liking. There are details on what each setting does inside that file.
================================================================================
1.2 - 12/8/2009

Updated the interface version to 30300 (patch 3.3).

No functional changes.



================================================================================
1.1 - 11/18/2009

Made the range indicator a more subdued color by default. Added user
configuration to pick the tint color/alpha.



================================================================================
1.0 - 11/15/2009

Original version
Archived Files (2)
File Name
Version
Size
Author
Date
1.1
6kB
Dayn
11-18-09 12:11 AM
1.0
6kB
Dayn
11-15-09 12:37 PM


Post A Reply Comment Options
Unread 04-16-10, 01:11 PM  
Razko
A Defias Bandit
 
Razko's Avatar

Forum posts: 2
File comments: 19
Uploads: 0
"The Blizzard UI shows cooldowns for abilities on action buttons, and these cooldowns are a combination of the true ability cooldown, the global cooldown, and power cooldowns (for abilities that use runes)."

Is there any way you could configure/edit these separately?

I want to keep the global cooldown part (way too used to that way of tracking global cooldown), but I absolutely hate how I sometimes can't see the true cooldown of an ability because of rune cooldowns.

Edit:
Ah, never mind, found a way to do it myself.
Code:
      -- Make sure the new cooldown isn't due to the GCD
      valid = valid and (gcdCooldown.isEnabled ~= 1 or math.abs(start - gcdCooldown.start) > 0.1 or duration ~= gcdCooldown.duration);
Commented out this line and it seems to work the way I want it to.

I'm not into coding, LUA and WoW API so if this can potentially screw up something, please tell me
Last edited by Razko : 04-16-10 at 01:28 PM.
Razko is offline Report comment to moderator  
Reply With Quote
Unread 11-18-09, 08:00 AM  
Dayn
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 69
Uploads: 7
Zork, yeah, it's unfortunate that a range check requires an OnUpdate. I did read up on rActionBarStyler, but I haven't looked at the code, yet. Replacing the Blizzard OnUpdate as you say should be the most efficient overall solution. I've been really trying to avoid replacing Blizzard and just doing hooksecure, and what I did is efficient under that philosophy. My main motivation is to avoid taint, though, and I think that in this particular case, since an OnUpdate should never be called by other Blizzard code that could be tainted, it shouldn't matter. Maybe I'll just replace the OnUpdate instead of hooking.
Dayn is offline Report comment to moderator  
Reply With Quote
Unread 11-18-09, 02:46 AM  
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1348
File comments: 3321
Uploads: 86
This one line of code is pretty awesome. Never knew this kind of stuff is possible.
Code:
hooksecurefunc(_G[buttonName .. "HotKey"], "SetVertexColor", updateRange)
You don't have to hook the onUpdate function this way which is pretty cool.

Have you looked into rActionButtonStyler yet?
I use it to style the default buttons. I'm using the onUpdate function in the mod currently just because of the rangecheck. I could change that know with the way you do it but what I found out is that my onUpdateFunc does quite well, much better than the default one. Thus I do not hook it, instead I replace the whole function.
It would be used anyway, just Blizzard CPU usage cannot be tracked :/.

Going to test this, especially the cooldown stuff sounds interesting.
__________________
| Simple is beautiful.
| Roth UI | Roth UI FAQ | GoogleCode | Zork | TDMOG

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
Last edited by zork : 11-18-09 at 02:53 AM.
zork is offline Report comment to moderator  
Reply With Quote
Unread 11-17-09, 10:40 PM  
Depherios
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 9
Uploads: 2
Perfect, Perfectly Perfect in every way!

This is definitely "The Addon I've Been Looking For" -- The addon I've always wanted. I get all my cooldown information from my buttons, and trying to track things like DnD always irritated me since day 1 on my DK. Don't feel like my actionbar is going to give me a seizure anymore now, especially in Unholy Presence.

Thank you for this, and for Snowfall Rune!
Depherios is offline Report comment to moderator  
Reply With Quote
Unread 11-15-09, 05:15 PM  
x
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 73
Uploads: 1
Originally posted by Dayn
Ah, gotcha. SnowfallActionButton is just showing/hiding the "Flash" texture, which is inherently a translucent red as part of the texture itself. This texture is normally what is flashed for your attack button (I know, you probably took the attack button off your bar when you were level 1). Maybe I should add an option to change its alpha. In the meantime, you can change its alpha by making this change:

-- Old
local flash = _G[actionButtonName .. "Flash"];
-- New
local flash = _G[actionButtonName .. "Flash"];
flash:SetAlpha(0.7);

Change the 0.7, above, to whatever looks good to you.
Sweet, thank you Dayn
x is offline Report comment to moderator  
Reply With Quote
Unread 11-15-09, 05:01 PM  
Dayn
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 69
Uploads: 7
Originally posted by x
Then is there any way to tune down the brightness of the red? I was using ActionButtonColors prior to SnowfallActionButton and I was able to have a darker red.
Ah, gotcha. SnowfallActionButton is just showing/hiding the "Flash" texture, which is inherently a translucent red as part of the texture itself. This texture is normally what is flashed for your attack button (I know, you probably took the attack button off your bar when you were level 1). Maybe I should add an option to change its alpha. In the meantime, you can change its alpha by making this change:

-- Old
local flash = _G[actionButtonName .. "Flash"];
-- New
local flash = _G[actionButtonName .. "Flash"];
flash:SetAlpha(0.7);

Change the 0.7, above, to whatever looks good to you.
Dayn is offline Report comment to moderator  
Reply With Quote
Unread 11-15-09, 04:48 PM  
x
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 73
Uploads: 1
Originally posted by Dayn
This addon doesn't color anything, so that may be why you're having a hard time finding any colors to change!
Then is there any way to tune down the brightness of the red? I was using ActionButtonColors prior to SnowfallActionButton and I was able to have a darker red.
x is offline Report comment to moderator  
Reply With Quote
Unread 11-15-09, 03:59 PM  
Dayn
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 69
Uploads: 7
Originally posted by x
I don't see where I can modify the colors.
This addon doesn't color anything, so that may be why you're having a hard time finding any colors to change!
Dayn is offline Report comment to moderator  
Reply With Quote
Unread 11-15-09, 03:54 PM  
x
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 73
Uploads: 1
I don't see where I can modify the colors. I'm usually quite good at making my way through lua and customize whatever I want, but it is not the case here.

The only thing that seems to get close is these lines:
Code:
local r, g, b = icon:GetVertexColor();
  if (math.abs(0.5 - r) + math.abs(0.5 - g) + math.abs(1.0 - b) > 0.1) then
    return;
  end
  r, g, b = normalTexture:GetVertexColor();
  if (math.abs(0.5 - r) + math.abs(0.5 - g) + math.abs(1.0 - b) > 0.1) then
    return;
  end
though I'm not sure exactly what they do :/
x is offline Report comment to moderator  
Reply With Quote
Unread 11-15-09, 01:02 PM  
Dayn
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 69
Uploads: 7
Originally posted by shkm
This may very well be The Addon I've Been Looking For. I can't download it right now as it hasn't been approved, however I'm mostly curious if you can fade buttons which are not on cooldown (or vice versa). If not, would it be a possible future feature?
The Blizzard UI will fade an action button when either
1. there is not enough power to activate the ability or
2. the ability cannot otherwise be activated (like trying to cast a buff when you have no target).

SnowfallActionButton can prevent fading in case #1 for any power types you select. The addon does not introduce any additional button-fading cases.
Dayn is offline Report comment to moderator  
Reply With Quote
Unread 11-15-09, 12:45 PM  
shkm
A Chromatic Dragonspawn
 
shkm's Avatar
AddOn Author - Click to view AddOns

Forum posts: 186
File comments: 99
Uploads: 7
This may very well be The Addon I've Been Looking For. I can't download it right now as it hasn't been approved, however I'm mostly curious if you can fade buttons which are not on cooldown (or vice versa). If not, would it be a possible future feature?
__________________
Quit WoW again on 17/04/2014.
shkm is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.