I suggest you use Snago's oUF_PowerSpark. It's better well written and the author actually knows what he's doing =P
Adds a spark to Rogues' and Druids' energy bar on oUF unit frames showing time remaining until next energy tick.
How to use:
Put this anywhere in the main function in your layout.
Code:
local spark = pp:CreateTexture(nil, "OVERLAY")
spark:SetTexture"Interface\\CastingBar\\UI-CastingBar-Spark"
spark:SetBlendMode"ADD"
spark:SetVertexColor(1, 1, 0)
spark:SetHeight(pp:GetHeight())
spark:SetWidth(pp:GetHeight() * 4)
self.Spark = spark
You can use any texture you want, however that is the normal "spark" texture.
Obviously, the height and width is changable, as is the blend mode if you'd like.
If you want to make the spark go across the health bar you'd use
hp:CreateTexture instead of
pp:CreateTexture, and if you wanted it to go across the entire unit frame you'd use
self:CreateTexture.
The spark will sync with your energy tick timer the first time you get an energy tick. This shouldn't be a problem when you're first logging in or zoning, but if you Reload your UI it could be a little off at first.
Other layouts and files:
oUF_P3lim
oUF_Ligherfluid
oUF_Kosken
oUF_Lily
oUF_DispelColor
oUF_TsoHG
oUF_CombatText
oUF_PowerSpark
oUF_Banzai +
LibBanzai-2.0
oUF