Download
(1Kb)
Download
Updated: 07-09-09 08:48 PM
Addon for:
EventHorizon.
Pictures
File Info
Updated:07-09-09 08:48 PM
Created:07-08-09 07:14 AM
Downloads:2,116
Favorites:5
MD5:

EventHorizon Lines (Old and discontinued)

Version: DISCONTINUED
by: Taroven [More]

Description
EventHorizon_Lines is a very short and simple module for EventHorizon that overlays as many vertical lines on the frame as you like at points of your choosing.

Why?
I've been wanting to make this for a long time. On my Rogue and Druid, I've always wanted to have something showing where everything would be at in 30 energy or so. On my Warrior, I always wanted an easy way to plan out my next couple GCDs. This handles both nicely.

Configuration
This module uses EventHorizon's config table. In your myconfig.lua, add the following two entries:

Code:
local config = EventHorizon.config
config.lines = {3,6,9,12} -- Seconds at which to place the lines. This can be in any order.
config.linesColor = {1,1,1,0.5} -- Color of the lines (r,g,b,alpha). Optional, defaults to this.
If you would like to have a different configuration for different characters or classes:
Code:
if UnitClass("player") == "ROGUE" then
	config.lines = {3,6}
elseif UnitClass("player") == "WARRIOR" then
	config.lines = {1.5, 3, 4.5, 6, 7.5, 9, 10.5}
	config.linesColor = {1,1,1,0.2}
else --Any other class
	config.lines = {3,6,9}
end
Quirks, known issues, planned changes
There should be no bugs, but there is no default line setup. You will need to add config.lines, and at the moment it must be a table (as above) even if you just want one line.

Lines are displayed after the "now" line. A line at 1.5 seconds will display 1.5 seconds in the future. No need to compensate for that.

Only up to 20 lines will display at once. The number could very easily go higher if requested.

Lines aren't always exactly one pixel. I've done what I can, but WoW's UI rendering will sometimes make them appear a little thicker. Not something I can control, sadly. You can try tweaking the time of a line by something like 0.01 seconds to adjust its placement.

I have not tried placing lines that exceed the timeframe of EventHorizon. That won't break it, but you've been warned.

Planned: Coming soon will be the ability to individually color lines. Also, I'd like to add a way to just tell the module to add a line every X seconds.

Questions, comments, feedback?
Post a comment here for best results.

v0.11.4 - Added relevant defaults. Also added a default 1.5 second line if config.lines doesn't exist.
v0.11.3 - Minor cleanup, fixed a harmless lua error.
v0.11.2 - Fixed config.lineColor (faulty logic)
v0.11 - Initial release.
Post A Reply Comment Options
Unread 07-09-09, 08:37 PM  
Taroven
A Cyclonian
AddOn Author - Click to view AddOns

Forum posts: 49
File comments: 837
Uploads: 11
Originally posted by Repaxan
Getting this bug:

Message: ..\AddOns\EventHorizon_Lines\lines.lua line 19:
attempt to perform arithmetic on local 'future' (a nil value)
Debug:
[C]: ?
EventHorizon_Lines\lines.lua:19:
EventHorizon_Lines\lines.lua:6
EventHorizon_Lines\lines.lua:51:
EventHorizon_Lines\lines.lua:49

The main functionality of EventHorizon works, but not the Lines module. I'm using the 0.11b2 version, slightly modified to not display icon textures.

EDIT: This happens if the config.lua doesn't have the future variable in it. Might wanna define a default in the addon code?
Was kinda hoping people wouldn't be taking that line out of config.lua.

Yeah, I'll add EH's defaults list.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: