| Updated: | 12-08-09 07:37 AM |
| Created: | 11-15-09 11:37 AM |
| Downloads: | 2,419 |
| Favorites: | 18 |
| MD5: |
File Name |
Version |
Size |
Author |
Date |
1.1 |
6kB |
Dayn |
11-17-09 11:11 PM |
|
1.0 |
6kB |
Dayn |
11-15-09 11:37 AM |
![]() |
Comment Options |
|
|
||
|
This one line of code is pretty awesome. Never knew this kind of stuff is possible.
Code:
hooksecurefunc(_G[buttonName .. "HotKey"], "SetVertexColor", updateRange) 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 FAQ | GoogleCode | DevShots | TheBigOne | Guild | zorker.de
Last edited by zork : 11-18-09 at 01:53 AM.
|
||
|
|
|
|
||
-- 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. |
||
|
|
|
|
||
|
||
|
|
|
|
||
![]() |
||
|
|
|
|
|
|
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
|
|
|
|
|
|
||
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. |
||
|
|
|
|
|
|
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?
|
|
|
|
![]() |
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.