Addon Info.
Change Log
Archived (6)
Comments (20)
  Category: Plug-Ins & Patches
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)

This file is a Addon for oUF by haste. You must have that installed before this Addon will work.

Author:
Version:
r76455
Date:
06-11-2008 05:20 AM
Size:
7.01 Kb
Downloads:
2,739
Favorites:
72
MD5:
Pictures
PowerSpark!
oUF PowerSpark   Popular!
This is an addon that adds a power spark to oUF.

The spark behaves differently depending if you're a mana or energy user.

For energy users it will indicate when the next normal energy tick is going to happen. It needs one tick to sync before it's usable and depending on latency it will only be a rough estimate as the real energy ticks seems to fluctuate ~100 ms every now and again.

For mana users it will start moving from left to right when you cast a spell that cost mana, indicating when you're inside the "5 sec rule" and don't have full mana regen. There's also a setting to show normal mana ticks as well (like the energy ticker) between casts.


Only works for one frame. As long as you want the spark on your player frame load order won't matter but to work on another frame you should OptDep oUF_PowerSpark as on load it only looks for a spark on the player frame.

Here's an example:

Code:
	if unit == "player" then
		-- Power spark!
		local spark = pp:CreateTexture(nil, "OVERLAY")
		spark:SetTexture("Interface\\CastingBar\\UI-CastingBar-Spark")
		spark:SetVertexColor(1, 1, 1, 0.5)
		spark:SetBlendMode("ADD")
		spark:SetHeight(pp:GetHeight()*2)
		spark:SetWidth(pp:GetHeight())
		--  Options and settings
		--spark.rtl = true
		--    Make the spark go from Right To Left instead
		--    Defaults to false
		--spark.manatick = true
		--    Show mana regen ticks outside FSR (like the energy ticker)
		--    Defaults to false
		--spark.highAlpha = 1
		--    What alpha setting to use for the FSR and energy spark
		--    Defaults to spark:GetAlpha()
		--spark.lowAlpha = 0.25
		--    What alpha setting to use for the mana regen ticker
		--    Defaults to highAlpha / 4
		self.Spark = spark
	end
Experiment with Texture, VertexColor, BlendMode, Height and Width to make the spark look like you want!


If you change any settings on the go you need to call

oUF_PowerSpark_ReapplySettings([object])

to make oUF_PowerSpark grab the new settings.
object is the frame to get the spark from. (Defaults to oUF.units["player"])



If you have any suggestions for improvements please post a comment or PM me
  Change Log - oUF PowerSpark
r76455:
- Fix the 5sr spark from not showing at all if you didn't use the manaticker.

r76259:
- Fix 5sr spark showing when it wasn't supposed to.
- Less jerky.

r73795:
- Hide energy ticker when out of combat, at full energy and with no attackable target.

r73572:
- Hide mana ticker at full mana.

r73475:
- Mana ticker!
- Much optimization in the OnUpdates

r73214:
- Smarter energy tick detection.
- Right-to-Left setting
  Archived Versions - oUF PowerSpark
File Name
Version
Size
Author
Date
r76259
7kB
Snago
06-08-2008 09:35 AM
r73795
7kB
Snago
05-14-2008 04:11 AM
r73572
6kB
Snago
05-12-2008 07:54 AM
r73475
6kB
Snago
05-11-2008 12:49 PM
r73214
4kB
Snago
05-09-2008 01:14 PM
r73027
3kB
Snago
05-08-2008 07:18 AM
  Comments - oUF PowerSpark
Post A Reply
Author Comments Comment Options
Old 06-12-2008, 12:20 AM  
Phanx
A Flamescale Wyrmkin
 
Phanx's Avatar
Interface Author - Click to view interfaces

Forum posts: 113
File comments: 424
Uploads: 15
Seems to be all working again now.
Phanx is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-11-2008, 04:09 AM  
Snago
A Kobold Labourer
 
Snago's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 10
Uploads: 4
Quote:
Originally posted by Phanx
Now I'm not seeing a mana spark at all, on either shaman or druid. The energy spark does still work, though.
doh >.<
Fixed now.
(And I'll actually test myself this time as soon as the servers are up again )
Snago is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-10-2008, 11:38 PM  
Phanx
A Flamescale Wyrmkin
 
Phanx's Avatar
Interface Author - Click to view interfaces

Forum posts: 113
File comments: 424
Uploads: 15
Now I'm not seeing a mana spark at all, on either shaman or druid. The energy spark does still work, though.
Phanx is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-08-2008, 06:36 AM  
Snago
A Kobold Labourer
 
Snago's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 10
Uploads: 4
Quote:
Originally posted by Phanx
Using r75324 (from wowace) the mana spark is misbehaving a bit. Once mana starts ticking normally (outside FSR), the spark does disappears, but reappears on the next mana tick, and remains visible at the end of the bar until mana is full, at which time it disappears again.
Should be fixed in r76259.
Snago is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 06-07-2008, 05:50 PM  
Phanx
A Flamescale Wyrmkin
 
Phanx's Avatar
Interface Author - Click to view interfaces

Forum posts: 113
File comments: 424
Uploads: 15
Using r75324 (from wowace) the mana spark is misbehaving a bit. Once mana starts ticking normally (outside FSR), the spark does disappears, but reappears on the next mana tick, and remains visible at the end of the bar until mana is full, at which time it disappears again.
Phanx is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-14-2008, 11:55 AM  
Snago
A Kobold Labourer
 
Snago's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 10
Uploads: 4
Quote:
Originally posted by Phanx
The only thing I've noticed in actual raid use (finally made the switch from PitBull tonight) is that the spark is a bit ... stuttery. If you compare to the spark/ticker in PitBull, you'll see the difference.
To be honest I've seen it stutter some too. Haven't tried it in any heavy situations (like raids) but essentially it does the same as PitBulls spark (just alot more efficient and it doesn't reset on every energy gain but only the actual regen ticks) so I'm not really sure where the stutter come from.

I have a few ideas on how I could make it more smooth but unfortunately, as I'm busy with other stuff, they will have to wait a week or two. But it won't be forgotten, I promise.

And thanks for the druid testing!
Here's a cookie!
Snago is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-14-2008, 07:33 AM  
Phanx
A Flamescale Wyrmkin
 
Phanx's Avatar
Interface Author - Click to view interfaces

Forum posts: 113
File comments: 424
Uploads: 15
/cheer!

The only thing I've noticed in actual raid use (finally made the switch from PitBull tonight) is that the spark is a bit ... stuttery. If you compare to the spark/ticker in PitBull, you'll see the difference.

As for druid testing:
  1. It does swap properly between mana and energy tickers.
  2. It does hide in Bear Form.
  3. My druid isn't Balance, so I can't test Moonkin Form.
Phanx is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-14-2008, 04:16 AM  
Snago
A Kobold Labourer
 
Snago's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 10
Uploads: 4
Quote:
Originally posted by Phanx
It would be nice to hide the energy ticker when I am out of combat, at full energy, and have no target (regardless of stealth status).
Done. The energy spark will now only show when you are in combat or have less than full energy or have an attackable target.
Snago is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-13-2008, 09:34 PM  
Phanx
A Flamescale Wyrmkin
 
Phanx's Avatar
Interface Author - Click to view interfaces

Forum posts: 113
File comments: 424
Uploads: 15
It would be nice to hide the energy ticker when I am out of combat, at full energy, and have no target (regardless of stealth status).
Phanx is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-12-2008, 11:04 AM  
Lolzen
A Murloc Raider
 
Lolzen's Avatar
Interface Author - Click to view interfaces

Forum posts: 6
File comments: 62
Uploads: 6
Awesome, that was fast :O
Thank you, sir! =)
Lolzen is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-12-2008, 07:58 AM  
Snago
A Kobold Labourer
 
Snago's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 10
Uploads: 4
Quote:
Originally posted by Lolzen
<3 the mana ticker =D
but again, i do have a suggestion, might it be possible to disable thje 2 sec ticks when mana is at 100%? Its a bit Annoying when you try to stand in the middle of Shatt and do nothing =P

otherwise, hanks for the function itself, as i said, love it =)
Done.
Snago is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-12-2008, 03:20 AM  
Lolzen
A Murloc Raider
 
Lolzen's Avatar
Interface Author - Click to view interfaces

Forum posts: 6
File comments: 62
Uploads: 6
<3 the mana ticker =D
but again, i do have a suggestion, might it be possible to disable thje 2 sec ticks when mana is at 100%? Its a bit Annoying when you try to stand in the middle of Shatt and do nothing =P

otherwise, hanks for the function itself, as i said, love it =)
Lolzen is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-11-2008, 03:48 PM  
Snago
A Kobold Labourer
 
Snago's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 10
Uploads: 4
wtb druid testing

If you're using this and have a druid could you please tell me if its working as intended?
  1. Is it swapping properly between mana FSR/ticker and energy ticker when switching to/from Cat form?
  2. Is it hiding in Bear form?
  3. Is the FSR spark showing properly from the swap to Moonkin form?
Snago is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-10-2008, 07:34 AM  
chalae
A Kobold Labourer
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 9
Uploads: 1
thanks for this, 5 second timer on the mana bar was the last thing i really missed in oUF
chalae is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 05-09-2008, 04:35 PM  
Snago
A Kobold Labourer
 
Snago's Avatar
Interface Author - Click to view interfaces

Forum posts: 0
File comments: 10
Uploads: 4
Quote:
Originally posted by nodq
Nope your are wrong, you still gain mana even if you do NOT cast a spell... every 5 Seconds, while in Combat! Kinda obvisious, or not? Why do you think is that, that other 5 Second rule Addons work like this? Because you are the only one who understands the 5 Second Rule?
I'm sorry but you're wrong again. Read the link I posted.
Mana regeneration ticks, like energy, every 2 seconds (even the mana gained from items that give "mana per 5 seconds"). After you cast a spell though your mana regen is interrupted for 5 seconds. This is called "the 5 second rule".
But the mana spark isn't meant to show when you get the next mana tick like the energy ticker is (I thought it was of no importance since the gain is so small per tick compared to energy ) it's meant to show you when your spirit based regen is interrupted after casting.

Due to popular demand, however, I'm implementing the feature to show mana ticks. You'll see the current five second rule indicator after a spellcast and when you're back to normal regen it'll continue to tick, like the energy ticker, every 2 seconds.
The mana ticker will be configurable with different alpha on the spark for the FSR indicator and the ticker.
Coming soon™
Snago is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:



The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOUI | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


MMOInterface.com Copyright ©2008
World of Warcraft is a registered Trademark of Blizzard Entertainment.
vBulletin - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.