View Full Version : Simple Progress Bar
adougherty
01-02-2007, 10:07 PM
Hi All,
I've been trying to figure out how to do a simple progress bar, could someone either reply how to make one (if it's really simple) or point me to a good tutorial, or a mod that I could read through?
Thanks!
Duugu
02-02-2007, 12:37 AM
XML:
<Frame name="Test">
<Frames>
<StatusBar name="$parentBar" inherits="TextStatusBar" >
<Size>
<AbsDimension x="100" y="10"/>
</Size>
<Anchors>
<Anchor point="TOPLEFT" relativeTo="$parent" relativePoint="TOPLEFT" />
</Anchors>
<Scripts>
<OnLoad>
this:SetMinMaxValues(0, 100);
this:SetValue(50);
</OnLoad>
</Scripts>
<BarTexture file="Interface\TargetingFrame\UI-StatusBar"/>
<BarColor r="1.0" g="1.0" b="1"/>
</StatusBar>
</Frames>
</Frame>
LUA:
getglobal("TestBar"):SetValue(10);
adougherty
02-02-2007, 06:29 PM
Many thanks! I was able to get that working!
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.