View Single Post
03-03-16, 04:35 AM   #62
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Originally Posted by Resike View Post
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
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 03-03-16 at 04:55 AM.
  Reply With Quote