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

Property group 'Option'

MaxValue

Type: int

Maximum allowed value.

Default value: 9999

MinValue

Type: int

Minimum allowed value.

Default value: -9999

MyNumericEdit

Type: GUINumericEdit

Modifiers: editconst, noexport

The actual edit box with up/down buttons.

Step

Type: int

Step interval for the up/down buttons.

Default value: 1

Default values

Property Value
ComponentClassName "XInterface.GUINumericEdit"

Functions

Events

InitComponent

event InitComponent (GUIController MyController, GUIComponent MyOwner)

Overrides: GUIMenuOption.InitComponent

Initializes the MyNumericEdit.

Other instance functions

GetComponentValue

function string GetComponentValue ()

Overrides: GUIMenuOption.GetComponentValue

Returns the string displayed in the edit box.

GetValue

function int GetValue ()

Returns the current value in the edit box.

SetComponentValue

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

function SetReadOnly (bool b)

Overrides: GUIMenuOption.SetReadOnly

Sets whether this control is read-only.

Setup

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

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

SetValue

function SetValue (coerce int V)

Puts a new value into the edit box.