There is no spoon

UE2:MoNumericEdit (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> GUI >> GUIComponent >> GUIMultiComponent >> GUIMenuOption >> MoNumericEdit
Package: 
XInterface
This class in other games:
UE2Runtime, UT2003

An edit control for integer values.

Properties[edit]

Property group 'Option'[edit]

MaxValue[edit]

Type: int

Maximum allowed value.

Default value: 9999

MinValue[edit]

Type: int

Minimum allowed value.

Default value: -9999

MyNumericEdit[edit]

Type: GUINumericEdit

Modifiers: editconst, noexport

The actual edit box with up/down buttons.

Step[edit]

Type: int

Step interval for the up/down buttons.

Default value: 1

Default values[edit]

Property Value
ComponentClassName "XInterface.GUINumericEdit"

Functions[edit]

Events[edit]

InitComponent[edit]

event InitComponent (GUIController MyController, GUIComponent MyOwner)

Overrides: GUIMenuOption.InitComponent

Initializes the MyNumericEdit.

Other instance functions[edit]

GetComponentValue[edit]

function string GetComponentValue ()

Overrides: GUIMenuOption.GetComponentValue

Returns the string displayed in the edit box.

GetValue[edit]

function int GetValue ()

Returns the current value in the edit box.

SetComponentValue[edit]

function SetComponentValue (coerce string NewValue, optional bool bNoChange)

Overrides: GUIMenuOption.SetComponentValue

Sets a new string to display in the edit box. This value is typecasted to int as validation.

SetReadOnly[edit]

function SetReadOnly (bool b)

Overrides: GUIMenuOption.SetReadOnly

Sets whether this control is read-only.

Setup[edit]

function Setup (coerce int NewMin, coerce int NewMax, coerce int NewStep)

Sets up the range and step interval for values in this control.

SetValue[edit]

function SetValue (coerce int V)

Puts a new value into the edit box.