Minion Beta! - Help us test our new AddOn updater. Get it now!
(5 Kb)
Updated: 09-01-12 11:42 PM
File Info
Updated:09-01-12 11:42 PM
Created:10-12-10 01:21 PM

GreenRange  Popular! (More than 5000 hits)

Version: v1.0.3
by: Morsker [More]


GreenRange turns your buttons RED when abilities are out of range. Several addons do this, but GreenRange is very efficient at it. It's "green" because it's modern and efficient, not because of the color. :P If you really like green though, you can configure it for green!

GreenRange actually has a negative performance cost, because it replaces some really inefficient code in the default UI. It's not going to increase your framerate by more than 1, but still, it works so well that it actually improves performance vs. not having it.


If you profile range-checking addons like this, you want to look at CPU usage, not memory usage. OptionHouse can profile CPU, but its "%" metric isn't that meaningful because it's relative to the other addons you have running. "CPU/Sec" is the easiest metric to use. "CPU" is meaningful only if you a) do the timing yourself, say 60 seconds, and compare equivalent times or divide to make them equivalent, and b) /run ResetCPUUsage() first so the counting starts at zero.


There's no config UI yet, but you can use /run commands to change the colors, and the setting will be saved. These are the defaults:

/run GreenRange:SetOOR_Color(1.0, 0.2, 0.2)
/run GreenRange:SetOOM_Color(0.2, 0.2, 1.0)

- TOC bump for patch 4.2.

- TOC bump for patch 4.1.

- First release.
Optional Files (0)

Archived Files (3)
File Name
07-01-11 12:45 PM
04-26-11 11:34 AM
10-12-10 01:21 PM

Post A Reply Comment Options
Unread 07-03-11, 02:49 AM  
A Deviate Faerie Dragon
Frayol's Avatar
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 127
Uploads: 4
Very nice addon, simple and does exactly what is supposed to. My only suggestion would be not to add a config UI at all, but to simply have the config as a couple of lines at the top of the GreenRange.lua to set the OOR & OOM colours. That way you could also do away with the saved variables. Just a personal opinion, but someone using this would either not bother to change the colours or would only do it the once so why have extra code for it?
Frayol is offline Report comment to moderator  
Reply With Quote
Unread 12-05-10, 02:42 AM  
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 88
File comments: 58
Uploads: 7
Great addon. My old range checking addon (which used quite a bit of CPU already) broke, and converting it to secure hooks made the CPU problem even worse again. Then I tried this and found that instead of increasing my CPU significantly to fix my taint issues, this fix them and reduced it by 90%. Really nice work.
Last edited by Barjack : 12-05-10 at 05:10 AM.
Barjack is online now Report comment to moderator  
Reply With Quote
Unread 10-12-10, 01:23 PM  
A Fallenroot Satyr
Morsker's Avatar
AddOn Author - Click to view AddOns

Forum posts: 22
File comments: 89
Uploads: 13
Very many addons do this already, but I was having so much fun writing it that I couldn't stop, even when I kept finding out about more range-coloring addons I hadn't heard of.

I like mine the most but I'm biased. :P It does profile very well though!
Morsker is offline Report comment to moderator  
Reply With Quote
Post A Reply

Category Jump: