Download
(7 Kb)
Download
Updated: 06-11-08 03:20 AM
Addon for:
oUF.
Pictures
File Info
Updated:06-11-08 03:20 AM
Created:unknown
Downloads:9,817
Favorites:80
MD5:
oUF PowerSpark  Popular! (More than 5000 hits)
Version: r76455
by: Snago [More]
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
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
Post A Reply Comment Options
Old 06-07-08, 03:50 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3977
File comments: 1913
Uploads: 38
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  
Reply With Quote
Old 06-08-08, 04:36 AM  
Snago
A Kobold Labourer
 
Snago's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 10
Uploads: 4
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  
Reply With Quote
Old 06-10-08, 09:38 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3977
File comments: 1913
Uploads: 38
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  
Reply With Quote
Old 06-11-08, 02:09 AM  
Snago
A Kobold Labourer
 
Snago's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 10
Uploads: 4
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  
Reply With Quote
Old 06-11-08, 10:20 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3977
File comments: 1913
Uploads: 38
Seems to be all working again now.
Phanx is offline Report comment to moderator  
Reply With Quote
Old 01-29-09, 08:30 PM  
Toran
A Nerdscale Dorkin
 
Toran's Avatar

Forum posts: 142
File comments: 430
Uploads: 0
I can't get this to work with oUF_Lyn - is this no longer functioning?
Toran is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: