I'm a little new to oUF, but I'm liking it a lot so far, the only issue I have is, when using Pitbull I had a LuaText that would turn red when out of range, and white when in range, I've been trying to edit oUF_Hank's name Tag to do this, but nothing I try seems to work - the best I could get was updating range only if I switched targets, but I can't seem to be able to get it to continually update.
If anyone could give me a simple example of how to do this, or how to do this with oUF.SpellRange (It's a little confusing, and I couldn't find any documentation on that really), that would be great.
Just to reiterate, I'm looking to set just a colour between white or red depending on range, I'm not interested in the alpha.
Note: The following is strictly for party/raid units.
You can do this in two ways:
1. Create a tag that returns the color based on UnitInRange().
2. Use tag.frequentUpdate = 0.05 to make it poll for updates every 0.05 sec.
1. Handle the OnUpdate yourself
2. Color/Update the fontstring based on UniInRange().
If you need it for all units, then you can use SpellRange's self.SpellRange.Update function.
On the topic, would you consider adding a 'Update' function (with 'Override') to the Range element?
For me, simple alpha changing can be ugly solution sometimes. (ex. layered textures)
Yet no better idea to identify the out-ranged frame, so just my 2 cents.