Download
(12Kb)
Download
Updated: 07-26-07 05:01 PM
Pictures
File Info
Updated:07-26-07 05:01 PM
Created:unknown
Downloads:10,877
Favorites:35
MD5:

Healing Range Alpha  Popular! (More than 5000 hits)

Version: 4.10
by: Crepusculu [More]

HealingRangeAlpha v4.10
Written by Crepusculu of Stormrage

This addon changes friendly unit frame's alpha based on distance

- Support for any unit frame using secure button templates
- Alpha values adjustable per range
- Available ranges depend on what spells you can cast


Operations:

/hra -- access the option menu

Enabled HRA -- Turns on and off HRA updates
(ms) interval updates -- Adjust the frequency of updates. Setting to zero will update whenever possible. Increase this delay to improve performance
colorize depth level -- Adjust the structural depth of textures in the unit frame that get colored. Currently disabled
slider bars -- Alpha value for specified range
color boxes -- Color value to blend with button textures for specified range. Currently disabled



Known Issues:

Coloring is disabled due to change in design (frames can be detected before they have textures).
Possible error with secure templates (index is pointing to a nil value). I'm unsure of the source of this error.





Version History
4.10 -
Removed the CreateFrame hook. The hook was causing the frames to become tainted. Will instead scan all frames periodically after new frames are created.
I haven't been successful in finding an event for unit attribute change, all methods appear to be blocked.


Got a question, suggestion, or a bug? Feel free to comment! A more in depth discussion of this mod has been posted in
This Thread

Optional Files (0)


Post A Reply Comment Options
Unread 05-23-07, 09:35 PM  
Crepusculu
A Deviate Faerie Dragon
 
Crepusculu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 23
Uploads: 6
@Lavis

The slider bars represent the alpha value (transparency) of the the unit frame when the unit falls within that particular distance. 0% will make it clear, 100% will make it opaque.
Report comment to moderator  
Reply With Quote
Unread 06-25-07, 01:11 AM  
Jumpee
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 55
Uploads: 6
Does this add-on work with the default Blizzard raid pullout frames?
Report comment to moderator  
Reply With Quote
Unread 06-25-07, 03:24 PM  
Jumpee
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 55
Uploads: 6
I just tried it and it doesn't work with the default Blizz raid frames. Too bad.
Report comment to moderator  
Reply With Quote
Unread 07-13-07, 03:55 PM  
Crepusculu
A Deviate Faerie Dragon
 
Crepusculu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 23
Uploads: 6
Thanks for bringing that up Jumpee. Blizzard has changed their raid frames since the last time I've worked on them. I run exclusively off 3rd addons for raiding purposes, so I didn't catch this.

In theory, my addon should be picking up the default raid ui, since unit frames MUST be protected and they MUST hold their associated unit value. I've tested and it appears that either the Blizzard is intentionally blocking me from manipulating their UI or that the secure frame and the related visual frames are separate entities. Those are just guesses, I'll have to spend some more time figuring out how their frames are constructed.


The latest version should work correctly with the "dynamic" raiding mods, specifically Pitbull, since I removed the slap-on variables. Pitbull was moving the frames around and particular when someone joined or left the raid, you would have these old references to obsolete frames.
Report comment to moderator  
Reply With Quote
Unread 07-14-07, 11:25 AM  
Jumpee
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 55
Uploads: 6
I wrote my own version that only works with the Blizzard UI once I figured your mod wouldn't. It is pretty basic and you can take a peek at it on another web site, mod is named RaidRangeAid.
Last edited by Jumpee : 07-19-07 at 12:54 PM.
Report comment to moderator  
Reply With Quote
Unread 07-26-07, 05:12 PM  
Crepusculu
A Deviate Faerie Dragon
 
Crepusculu's Avatar
AddOn Author - Click to view AddOns

Forum posts: 16
File comments: 23
Uploads: 6
Hooking CreateFrame was tainting my action buttons for some reason, and I could not use a macro with /castsequence. I have since then switched my frame detection to pick up frames 5 seconds AFTER the last frame was created and ONLY frames that have assigned units.

Pitbull has a very funny thing going on with its focus frame where the alpha value gets reset to 1 periodically. This is defeated by increasing the frequency of updates, however I have been unable to find the event/function or the general reason of how or why this is happening. I have gone through extensive hooking on all events and scripts, secure and insecure hooks, but have unsuccessful in all attempts.


WTB a working <frame>:HookScript("OnAttributeChange",function() return arg1=="unit" end)

if I could get such a function to work, I could remove the periodical setalphas and have an event driven update.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: