Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(15 Kb)
Download
Updated: 09-29-11 12:25 AM
Updated:09-29-11 12:25 AM
Created:09-24-11 05:05 AM
Downloads:1,060
Favorites:3
MD5:
Broker: PoisonTimers
Version: v1.2
by: Choonstertwo [More]
Description
This is simple AddOn that displays the time left on your main hand, off hand and thrown poisons as independent DataBroker plugins.

It was designed with Rogue Poisons in mind, but also works with Shaman Imbues.

Version 1.0 has been tested with Titan Panel (v5.0.6.40200), Bazooka (v2.1.3), ButtonBin (v1.0.77) and Chocolate Bar (v2.2) though it should work with any DataBroker display AddOn (that supports the "data source" LDB Data Object type).

Version 1.1 is now configurable via the new slash command and has ChoonLib embedded.

Version 1.2 has simplified the slash command by merging the prefix and timer format into a single string for each timer.

Slash Command Usage
/brokerpoisontimers or /poisontimers or /bpt mainhand|offhand|thrown setting
  • Changes the time format of the specified timer to setting. setting can contain all characters (including spaces).
  • %M and %S will be replaced with the minutes and seconds remaining, respectively. To display a percent sign in the format, you must use %%. The default time format is "X: %M:%S" (where X is M, O or T).
  • Several other tokens can be used in the time format, but only the minutes/seconds have meaningful values. The other tokens can be found at the link to "strftime" at Wowpedia.
  • If you get a Lua error telling you that the "format is too long", it actually means the function used to display the timers doesn't support one of the tokens you used.


Known Issues
  • Timers don't update properly with the new remaining time after applying a poison/imbue. This seems to be a flaw in the function used to get the initial remaining times. Mousing over a timer will call the function again and update all timers with the correct time. See the Known Caveats page for detailed technical information.


Credits
The original concept for the AddOn was outlined by Zelreth.
v1.2
  • Merged the prefix and timer format into a single string for each timer.
  • Updated the slash command and BPT_DB saved variable to reflect this.

v1.1
  • Added a slash command to change the display format of the timers.
  • Added the BPT_DB saved variable to the TOC (saved per character).
  • Moved the timer text formatting code to a dedicated local function, GetTimerText.
  • Embedded ChoonLib.
Optional Files (0)


Archived Files (2)
File Name
Version
Size
Author
Date
v1.1
15kB
Choonstertwo
09-26-11 09:49 PM
v1.0
15kB
Choonstertwo
09-24-11 05:05 AM


Post A Reply Comment Options
Unread 09-29-11, 04:35 PM  
Zanaken
A Deviate Faerie Dragon

Forum posts: 12
File comments: 15
Uploads: 0
Awesome, this addon really helps! Thanks for the time format changes
Zanaken is offline Report comment to moderator  
Reply With Quote
Unread 09-24-11, 02:17 PM  
Choonstertwo
A Flamescale Wyrmkin
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 110
File comments: 67
Uploads: 29
Re: Nice

Originally posted by Zanaken
Love the addon!

If I can make one suggestion, can you change the format of the timer?

Something like 58m remaining instead of 58:33.
I'll implement a slash command to change the timer format in the next version.
Choonstertwo is offline Report comment to moderator  
Reply With Quote
Unread 09-24-11, 07:31 AM  
Zanaken
A Deviate Faerie Dragon

Forum posts: 12
File comments: 15
Uploads: 0
Nice

Love the addon!

If I can make one suggestion, can you change the format of the timer?

Something like 58m remaining instead of 58:33.
Zanaken is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: