Creation/Dev/Script/Client/GuiTextEditSliderCtrl

From Graal Bible
Revision as of 23:56, 15 February 2010 by Pooper200000 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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;
}