Category: Action Bar Mods
Addon Information
Works with 3.3
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Author:
Version:
1.2
Date:
12-08-2009 08:37 AM
Size:
6.20 Kb
Downloads:
917
Favorites:
12
MD5:
Pictures
SnowfallActionButton
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.
  Change Log - SnowfallActionButton
================================================================================
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 Versions - SnowfallActionButton
File Name
Version
Size
Author
Date
1.1
6kB
Dayn
11-18-2009 12:11 AM
1.0
6kB
Dayn
11-15-2009 12:37 PM
  Comments - SnowfallActionButton
Post A Reply Comment Options
Old 11-18-2009, 08:00 AM  
Dayn
A Kobold Labourer
Interface Author - Click to view interfaces

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   Edit/Delete Message Reply With Quote
Old 11-18-2009, 02:46 AM  
zork
A Chromatic Dragonspawn
 
zork's Avatar
Interface Author - Click to view interfaces

Forum posts: 168
File comments: 1202
Uploads: 28
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.
| Blog | Roth UI | Roth UI mini | Roth UI FAQ | GoogleCode | DevShots | TheBigOne | Guild

Last edited by zork : 11-18-2009 at 02:53 AM.
zork is online now Report comment to moderator   Edit/Delete Message Reply With Quote
Old 11-17-2009, 10:40 PM  
Depherios
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 8
File comments: 8
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   Edit/Delete Message Reply With Quote
Old 11-15-2009, 05:15 PM  
Æxò
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 4
File comments: 73
Uploads: 1
Quote:
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   Edit/Delete Message Reply With Quote
Old 11-15-2009, 05:01 PM  
Dayn
A Kobold Labourer
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 69
Uploads: 7
Quote:
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   Edit/Delete Message Reply With Quote
Old 11-15-2009, 04:48 PM  
Æxò
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 4
File comments: 73
Uploads: 1
Quote:
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   Edit/Delete Message Reply With Quote
Old 11-15-2009, 03:59 PM  
Dayn
A Kobold Labourer
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 69
Uploads: 7
Quote:
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   Edit/Delete Message Reply With Quote
Old 11-15-2009, 03:54 PM  
Æxò
A Murloc Raider
Interface Author - Click to view interfaces

Forum posts: 4
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   Edit/Delete Message Reply With Quote
Old 11-15-2009, 01:02 PM  
Dayn
A Kobold Labourer
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 69
Uploads: 7
Quote:
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   Edit/Delete Message Reply With Quote
Old 11-15-2009, 12:45 PM  
shkm
A Chromatic Dragonspawn
 
shkm's Avatar
Interface Author - Click to view interfaces

Forum posts: 165
File comments: 90
Uploads: 6
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?
__________________
Blog
shkm is offline Report comment to moderator   Edit/Delete Message 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.




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.