Download
(8Kb)
Download
Updated: 07-06-09 05:15 PM
Pictures
File Info
Updated:07-06-09 05:15 PM
Created:01-11-09 09:01 AM
Downloads:2,732
Favorites:18
MD5:

FSRTimer

Version: r210
by: recluse [More]

Click here to lend your support!
FSRTimer is a simple, yet customizable timer for casters to visually see when they are in or out of the five second rule.

This is a three-state timer, with a numeric display. While the colors can be modified, by default the colors are as follows:
  1. Dark green bar - This refers to an idle state when your mana is full.
  2. Bright red bar - This occurs during the five second when your mana regeneration is limited due to having just cast a spell. The bar will deplete during the five seconds.
  3. Bright green bar - This occurs after you leave the five second state, and your mana regen is no longer limited, and you are at less than full mana.

Type /fsrt into your chatbox to open the options GUI. With it, you can customize virtually every aspect of FSRTimer.

You will need to have the FSRTimer_Options (included) installed and loaded to access it. While the options do not use much, you can disable them if you wish to free up the memory it uses. If you decide to choose not to load the options, you will not have access to change any settings, however.

r210:
- Major code overhaul.
- Now properly supports monitoring mana on druids while in a non-mana form (bear, cat...).
- Will now notify the user and become dormant when loaded on a non-mana class.
- Added an options GUI.
- Removed complex slash commands, /fsrt now opens the options GUI, if FSRTimer_Options is installed and loaded.
- Made counter independant of the bar, allowing it to be moved freely.
- Allow for the bar and the counter to be toggled on/off, meaning you can have a bar-only, text-only, or bar and text FSRTimer.
- Added option to set the strata of the timer, allowing the user to overcome the timer disappearing behind other UI objects.
- Option to recolor the counter text.
- Option to resize the counter text.
- Added option to recolor the bar during each of its states, as well as it's background.
- Added option to control the latency buffer setting for users to fine-tune as needed.
- Now placing a checkmark next to dropdown values to show current value.
- Added helpful tooltips to options.

4/19/09: Marking as 3.1 safe.

r108:
- Fix for show/hide and frame lock not saving between sessions.
- Added option to hide the counter when it is zero.
Post A Reply Comment Options
Unread 06-09-10, 12:37 AM  
Robicus
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
Re: r210!

Originally posted by recluse
I have added an options GUI, which should make it easier for y'all to customize FSRTimer.
should...but doesn't. It makes it easier to move the bar around, but not with CONTROL of exactly where it stops. One pixel movement of the mouse causes the slide control to jump SEVERAL numbers, and typing the number in doesn't work. The only way I could find to adjust it was to use the GUI to get it CLOSE to where I wanted it, then go into the lua file and manually change the numbers, and restart WoW, check the position, change the file to a new number guess, restart WoW again...until I finally got the position just right. In the previous version, all I had to do was type "/fsrt width=" or height= etc. So much harder now.
Report comment to moderator  
Reply With Quote
Unread 07-06-09, 05:20 PM  
Recluse
A Cliff Giant
 
Recluse's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 94
Uploads: 13
r210!

Well, after an incredibly long delay (egads, like six months?), I've updated FSRTimer. I've been around, but my focus has been on my other addons as of late.

Most notably, I have added an options GUI, which should make it easier for y'all to customize FSRTimer. In addition to this, there are several more options available for customization.

I also fixed a bug where the bar would get 'stuck' in regen mode if the player was a druid and shifted into bear or cat form. Sorry about that my furry friends!
__________________
We'd be together, but only diamonds last forever...
Report comment to moderator  
Reply With Quote
Unread 03-27-09, 03:56 PM  
Recluse
A Cliff Giant
 
Recluse's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 94
Uploads: 13
@Morafaye, I'm not sure what the issue there is. I downloaded it direct from the website and it extracted fine. Are you using Windows, or something else? I compress my archives using 7-Zip, and never encountered any issues with others being able to extract them.

I used an alternative compression method here, if you like to try and see if that one works for you?
__________________
We'd be together, but only diamonds last forever...
Report comment to moderator  
Reply With Quote
Unread 03-17-09, 01:53 PM  
Morafaye
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Sounds like it could really help me with my holy priest, but when I try to extract it, I get an error message with: File skipped unknown compression method. None of the other add-ons I have extracted gave me that message... What could be the problem?
Report comment to moderator  
Reply With Quote
Unread 01-12-09, 10:34 AM  
Fonjask
A Fallenroot Satyr
 
Fonjask's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 266
Uploads: 2
Originally posted by recluse
As for the dynamic way I mentioned, you'd have to set it up to happen in the OnUpdate, and the method of OnUpdate I used would probably have to be changed to support it, but entirely possible *nod*
If you could find some time it would be great ^^
__________________
~~~~~~~~~~~~
Report comment to moderator  
Reply With Quote
Unread 01-12-09, 02:00 AM  
Recluse
A Cliff Giant
 
Recluse's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 94
Uploads: 13
Originally posted by Fonjask
[b]And I changed your .lua a little, to make it not show the counter when I haven't cast anything in the past 5 seconds.
Code:
timer.Counter:SetText("0.0")
Code:
timer.Counter:SetText(" ")
After thinking about it, I put this as a toggle in r108, which should be up for download soon (along with a few other fixes).
"/fsrt counter showzero" to toggle showing/hiding it when it reaches zero.
__________________
We'd be together, but only diamonds last forever...
Report comment to moderator  
Reply With Quote
Unread 01-11-09, 09:51 PM  
Recluse
A Cliff Giant
 
Recluse's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 94
Uploads: 13
Originally posted by Fonjask
Maybe make the judgementtimer have a config on first run (or just tell people on the download site they have to set it up first, with for example
Code:
/judgetimer #, where # is 6, 7 or 8 (seconds cooldown)
There must be an API thing that covers SPELL_CAST no?
It wouldn't be hard or anything to create, no. As for the 6,7 or 8 seconds, you could even determine that without asking the user.

Originally posted by Fonjask
[b]And I changed your .lua a little, to make it not show the counter when I haven't cast anything in the past 5 seconds.
Code:
timer.Counter:SetText("0.0")
Code:
timer.Counter:SetText(" ")
Yep, it isn't necessary to have the zero on the counter, it can be anything at all.

Originally posted by Fonjask Of course you can change that text to anything you like! I'll post an update about this later tonight or tomorrow, but I THINK it should be able to show Current Mana / Total Mana.
*nod* Though it would be a larger (but easy) change to show a dynamic current mana, it would not be difficult to get the information if that's what you want. Something like this:
Code:
local myMana = " "
local _, manaCheck = UnitPowerType("player")
if manaCheck == "MANA" then
   local curMana = UnitPower("player", 0)
   local maxMana = UnitPowerMax("player", 0)
   myMana = curMana.."/"..maxMana
end
timer.Counter:SetText(myMana)
I haven't used the new UnitPower/UnitPowerMax functions yet (they came sometime after 3.x), so take this code as just pseudo, really. I didn't include this display of mana, since I already have my max/min and % of mana on my actual unit frame. I figured the counter would be sufficient. But sure, it's entirely possible to put any kind of text in there you wish.

As for the dynamic way I mentioned, you'd have to set it up to happen in the OnUpdate, and the method of OnUpdate I used would probably have to be changed to support it, but entirely possible *nod*
__________________
We'd be together, but only diamonds last forever...
Last edited by Recluse : 01-11-09 at 09:54 PM.
Report comment to moderator  
Reply With Quote
Unread 01-11-09, 03:02 PM  
Fonjask
A Fallenroot Satyr
 
Fonjask's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 266
Uploads: 2
And I changed your .lua a little, to make it not show the counter when I haven't cast anything in the past 5 seconds.

Really simple, just change the first code to the second code:

Code:
function FSRTimer:TimerReset(start, full)
	timer:SetScript("OnUpdate", nil) -- Turn off our timer update listener
	-- Reset our duration
	timerVar = timerDuration
	timer.Fill:SetValue(timerVar)
	timer.Counter:SetText("0.0")
	-- Make the bar a bright green
	timer.FillFG:SetVertexColor(0, 1, 0, 1)
	-- Start listening, if our timer needs to start up again
	if start then
		timer:SetScript("OnUpdate", function(self, elapsed) FSRTimer:Timer(elapsed) end)
	end
end
Code:
function FSRTimer:TimerReset(start, full)
	timer:SetScript("OnUpdate", nil) -- Turn off our timer update listener
	-- Reset our duration
	timerVar = timerDuration
	timer.Fill:SetValue(timerVar)
	timer.Counter:SetText(" ")	
	-- Make the bar a bright green
	timer.FillFG:SetVertexColor(0, 1, 0, 1)
	-- Start listening, if our timer needs to start up again
	if start then
		timer:SetScript("OnUpdate", function(self, elapsed) FSRTimer:Timer(elapsed) end)
	end
end
Of course you can change that text to anything you like! I'll post an update about this later tonight or tomorrow, but I THINK it should be able to show Current Mana / Total Mana.


s, Fonjask


EDIT: Bolded, Italiced and Underlined the change, wasn´t clear enough with just Bold.
__________________
~~~~~~~~~~~~
Last edited by Fonjask : 01-11-09 at 03:04 PM.
Report comment to moderator  
Reply With Quote
Unread 01-11-09, 01:23 PM  
Fonjask
A Fallenroot Satyr
 
Fonjask's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 266
Uploads: 2
Originally posted by recluse
Originally posted by Fonjask
If you can make an exact copy of this bar, but then make it show the cooldown on my Paladin's Judgements (6 or 7 seconds with talents, 8 without), I would certainly download that as well, and a lot of other people with me!
Hmm, I have a Paladin alt that I've been slowly leveling through Northrend, and being Ret (for leveling), I can see how the Judgement cooldown could be an issue. (...) I've been using NeedToKnow for the durations with Judgements. If I think of an idea that makes Judgement cooldowns 'easier' to manage, I'll see about it. (...)
Yeah... I tried NeedToKnow, but it didn't work for me (and yes I set it up correctly)...
Maybe make the judgementtimer have a config on first run (or just tell people on the download site they have to set it up first, with for example
Code:
/judgetimer #, where # is 6, 7 or 8 (seconds cooldown)
There must be an API thing that covers SPELL_CAST no?


s, Fonjask
__________________
~~~~~~~~~~~~
Report comment to moderator  
Reply With Quote
Unread 01-11-09, 11:36 AM  
Recluse
A Cliff Giant
 
Recluse's Avatar
AddOn Author - Click to view AddOns

Forum posts: 70
File comments: 94
Uploads: 13
Originally posted by Jackson
I've been looking something like this for the last couple of months (...snip...) There are no non-packaged addons that provide this timer and the only old one I could find didn't work anymore.
I was in a similar predicament. I knew of two other timers for the five second rule, but either they did not work or were 'built-in' to a larger addon. I decided to go ahead and make this while playing around on a Priest alt, because I really needed to know the information.

Originally posted by Fonjask
Hope to see more likewise, minimalistic addons coming up!
I do try to make my addons as minimalistic as possible these days. I'm glad people are already seeming to enjoy this one.

Originally posted by Fonjask
PS: If you can make an exact copy of this bar, but then make it show the cooldown on my Paladin's Judgements (6 or 7 seconds with talents, 8 without), I would certainly download that as well, and a lot of other people with me!
Hmm, I have a Paladin alt that I've been slowly leveling through Northrend, and being Ret (for leveling), I can see how the Judgement cooldown could be an issue. I've been using OmniCC on my buttons for the cooldowns, and a NeedToKnow block for the durations with Judgements. If I think of an idea that makes Judgement cooldowns 'easier' to manage, I'll see about it, but no promises. I know what you're asking for here and all, I'm just not sure if it's something I'd be using myself. I'll toy with the idea, though. *nod*
__________________
We'd be together, but only diamonds last forever...
Report comment to moderator  
Reply With Quote
Unread 01-11-09, 11:06 AM  
Jackson
A Kobold Labourer

Forum posts: 0
File comments: 11
Uploads: 0
Thanks!

I've been looking something like this for the last couple of months, ever since I started healing on my druid.

There are no non-packaged addons that provide this timer and the only old one I could find didn't work anymore.

Definitely thanks again.
Report comment to moderator  
Reply With Quote
Unread 01-11-09, 09:47 AM  
Fonjask
A Fallenroot Satyr
 
Fonjask's Avatar
AddOn Author - Click to view AddOns

Forum posts: 25
File comments: 266
Uploads: 2
Great addon, minimalistic, and I can make it look like it belongs to Quartz! Best of all current addons that do likewise at the moment.

Hope to see more likewise, minimalistic addons coming up!

s, Fonjask



PS: If you can make an exact copy of this bar, but then make it show the cooldown on my Paladin's Judgements (6 or 7 seconds with talents, 8 without), I would certainly download that as well, and a lot of other people with me!
__________________
~~~~~~~~~~~~
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.