Originally Posted by Resike
Would it be possible to create animated pie charts with this method with relatively small cost?
|
If you want pie charts you could use the scrollframe technique I posted before and which is used in rCompassCastbar. All you need are 2 scrollframes spanning 180° each.
Left side is one scrollframe. Right side is one scroll frame. Right side is filled counter-clockwise. Left side is filled clockwise. All you need is the texture drawlayer. Using strata "BACKGROUND" you can have up to 15 ring segments ranging from -8 to 7.
Your pie chart consists of half-circle textures.
By rotating them properly (texture:SetRotation() is enough in this case) you crop it.
Btw..one point on FPS gain. Has anyone tried hiding the frame before applying the rotation and showing it again right after applying the rotation?
I know this is not SetPoint() but maybe it has an effect like this:
http://www.wowinterface.com/forums/s...ad.php?t=46740