HelpHow can i create a progress bar

Posts 1–4 of 4 · Page 1 of 1
How can i create a progress bar
Please put the code for a progress bar
Em, Allready answerd in another thread:

Here

Code:

UseBar()
{
self endon( "disconnect" );
while (1) {
self notifyOnPlayerCommand("5", "+actionslot 2");
self waittill("5");
useBar = createPrimaryProgressBar( 25 );
useBarText = createPrimaryProgressBarText( 25 );
useBar updateBar( 10 / 20); // This is the value, The max is 20 and you get 10 off 20. So I think you just add your things in there.
}
}
but how can i choose the location of the bar
Quote Originally Posted by sdm View Post
but how can i choose the location of the bar
Try to add:


useBar.alignX = "right";
useBar.alignY = "bottom";
useBar.horzAlign = "right;
useBar.vertAlign = "bottom";
useBar.y = 25

Not so sure. But
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us