View Single Post
08-04-14, 10:11 AM   #19
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by syncrow View Post
if i understand it right, you want me to create a fake statusbar (texture type) and rotate it (cause frames or textures itself doesn't flash like StatusBar) and calculate the texCoords with the statusbar value
I just created a texture on top of the existing status bar texture for you to animate, which is not even close to the overhead of creating a second status bar.

The texture is automatically sized to match the status bar fill because you call :SetAllPoints() on it, you don't need to do anything else with that.

There's no reason to create a scrollframe for this because you're already using SetTexCoord to animate the texture and it's trivial to add the horizontal offset to that to avoid skewing the texture as it shrinks.
  Reply With Quote