oUF SpellRange is an element plug-in for Haste's oUF unit frame framework that fades unit frames when out of casting range. Unlike the default oUF range fading, SpellRange works for any hostile or friendly targets, rather than group members only. You must have oUF and a compatible layout for oUF SpellRange to do anything.
Usage
The settings for implementing SpellRange are intentionally the same as the default Range element, because the two elements cannot work together. SpellRange will disable the Range element for frames where both are enabled.
To enable the SpellRange element:
self.SpellRange = true;
Either of the following sets of properties is required:
function self:SpellRangeOverride( InRange )
...
endOR
self.inRangeAlpha = 1.0; -- Frame alpha when in range
self.outsideRangeAlpha = 0.4; -- Frame alpha when out of range
Don't forget to add oUF_SpellRange as an optional dependency of your layout.
Note: SpellRange is necessarily slower than the default Range element, so use it with caution for large groups like raids or parties. The default Range element will always work for "player", "pet", and any unit that passes UnitPlayerOrPetInParty/UnitPlayerOrPetInRaid, however it is limited to 38 yard range.
Facts
- Date created
- 07 Jun 2009
- Categories
- Last update
- 16 Jan 2010
- Development stage
- Release
- Language
- deDE
- enUS
- esES
- esMX
- frFR
- koKR
- ruRU
- zhCN
- zhTW
- License
- GNU General Public License version 3 (GPLv3)
- Curse link
- oUF SpellRange
- Recent files
- R: oUF_SpellRange 3.3.0.2 for 3.3.0 on 16 Jan 2010
- R: oUF_SpellRange 3.3.0.1 for 3.3.0 on 08 Dec 2009
- R: oUF_SpellRange 3.2.0.2 for 3.2.0 on 08 Aug 2009
- R: oUF_SpellRange 3.2.0.1 for 3.2.0 on 04 Aug 2009
- R: oUF_SpellRange 3.0.9.6 for 3.1.0 on 08 Jun 2009