Creation/Dev/Script/Client/GuiProgressCtrl: Difference between revisions

From Graal Bible
mNo edit summary
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Scripting Reference]]
Inherits [[Creation/Dev/Script/Client/GuiControl|GuiControl]].
=Description=
[[Image:Guicontrol_progress.png]]
This displays a simple border and fills it with a rectangle depending on the ''progress'' variable (0 is empty, 1 is full).
=Variables=
progress - float
=Example=
<pre>
<pre>
    GuiProgressCtrl (GuiControl):
new GuiProgressCtrl("Test_Progress") {
      progress - float
  profile = GuiBlueProgressProfile;
  x = 10;
  y = 10;
  width = 160;
  height = 20;
  progress = 0.3;
}
</pre>
</pre>

Latest revision as of 00:55, 16 February 2010

Inherits GuiControl.

Description

Guicontrol progress.png

This displays a simple border and fills it with a rectangle depending on the progress variable (0 is empty, 1 is full).


Variables

progress - float


Example

new GuiProgressCtrl("Test_Progress") {
  profile = GuiBlueProgressProfile;
  x = 10;
  y = 10;
  width = 160;
  height = 20;
  progress = 0.3;
}