Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(5 Kb)
Download
Updated: 09-01-12 11:42 PM
Pictures
File Info
Compatibility:
Mists of Pandaria (5.0.4)
Updated:09-01-12 11:42 PM
Created:10-12-10 01:21 PM
Downloads:5,377
Favorites:38
MD5:
GreenRange  Popular! (More than 5000 hits)
Version: v1.0.3
by: Morsker [More]
Description

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.

Profiling

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.

Options

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)
v1.0.2
- TOC bump for patch 4.2.

v1.0.1
- TOC bump for patch 4.1.

v1.0
- First release.
Optional Files (0)


Archived Files (3)
File Name
Version
Size
Author
Date
v1.0.2
5kB
Morsker
07-01-11 12:45 PM
v1.0.1
5kB
Morsker
04-26-11 11:34 AM
v1.0
5kB
Morsker
10-12-10 01:21 PM


Post A Reply Comment Options
Unread 07-03-11, 02:49 AM  
Frayol
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  
Barjack
A Black Drake
AddOn Author - Click to view AddOns

Forum posts: 80
File comments: 52
Uploads: 6
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 offline Report comment to moderator  
Reply With Quote
Unread 10-12-10, 01:23 PM  
Morsker
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: