Creation/Dev/Script/Client/GuiTextEditSliderCtrl: 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/GuiTextEditCtrl|GuiTextEditCtrl]].
=Description=
[[Image:Guicontrol_editslider.png]]
This control basicly displays a number and two arrows where you can click on to increase or decrease the number. With ''format'' you can display some text around the number (e.g. format="$%d" to display the number like $1).
=Variables=
allowedit - string
format - string
increment - float
range - string
value - float
=Example=
<pre>
<pre>
        GuiTextEditSliderCtrl (GuiTextEditCtrl):
new GuiTextEditSliderCtrl("Test_EditSlider") {
          allowedit - string
  profile = GuiBlueTextEditSliderProfile;
          format - string
  x = 10;
          increment - float
  y = 10;
          range - string
  width = 160;
          value - float
  height = 20;
  format = "Edit %d Slider";
  range = {1,200};
  value = 123;
</pre>
</pre>

Latest revision as of 00:56, 16 February 2010

Inherits GuiTextEditCtrl.

Description

Guicontrol editslider.png

This control basicly displays a number and two arrows where you can click on to increase or decrease the number. With format you can display some text around the number (e.g. format="$%d" to display the number like $1).


Variables

allowedit - string

format - string

increment - float

range - string

value - float


Example

new GuiTextEditSliderCtrl("Test_EditSlider") {
  profile = GuiBlueTextEditSliderProfile;
  x = 10;
  y = 10;
  width = 160;
  height = 20;
  format = "Edit %d Slider";
  range = {1,200};
  value = 123;
}