Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.UINumericEditBox

Extends
UIEditBox
Modifiers
native ( inherit )

This widget allows the user to type numeric text into an input field. The value of the text in the input field can be incremented and decremented through the buttons associated with this widget. Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. @todo - selection highlight support

Core.Object
|   
+-- Engine.UIRoot
   |   
   +-- Engine.UIScreenObject
      |   
      +-- Engine.UIObject
         |   
         +-- Engine.UIEditBox
            |   
            +-- Engine.UINumericEditBox

Direct Known Subclasses:

UTUINumericEditBox

Constants Summary
Inherited Contants from Engine.UIObject
CONTEXTMENU_BINDING_INDEX, FIRST_DEFAULT_DATABINDING_INDEX, TOOLTIP_BINDING_INDEX

Variables Summary
UINumericEditBoxButtonDecrementButton
UINumericEditBoxButtonIncrementButton
Buttons
UIScreenValue_BoundsDecButton_Position
UIScreenValue_BoundsIncButton_Position
Style
UIStyleReferenceDecrementStyle
UIStyleReferenceIncrementStyle
Text
intDecimalPlaces
UIRangeDataNumericValue
Inherited Variables from Engine.UIEditBox
BackgroundImageComponent, bPasswordMode, bReadOnly, CharacterSet, DataSource, InitialValue, MaxCharacters, StringRenderComponent
Inherited Variables from Engine.UIObject
AnimationParent, AnimationPosition, AnimStack, bDebugShowBounds, bEnableActiveCursorUpdates, bSupportsPrimaryStyle, ContextMenuData, DebugBoundsColor, DockTargets, NavigationTargets, Owner, OwnerScene, PrimaryStyle, PrivateFlags, RenderBoundsVertices[EUIWidgetFace.UIFACE_MAX], RenderBounds[EUIWidgetFace.UIFACE_MAX], RenderOffset, Rotation, StyleSubscribers, TabIndex, ToolTip, WidgetID, WidgetTag

Enumerations Summary
Inherited Enumerations from Engine.UIEditBox
EEditBoxCharacterSet

Functions Summary
function DecrementValue (UIScreenObject Sender, int PlayerIndex)
functionfloat GetNumericValue () con)
function IncrementValue (UIScreenObject Sender, int PlayerIndex)
event Initialized ()))
event PostInitialize ()))
functionbool SetNumericValue (float NewValue, optional bool bForceRefreshString=false)
Inherited Functions from Engine.UIEditBox
CalculateCaretPositionFromCursorLocation, ClearBoundDataStores, GetBoundDataStores, GetDataStoreBinding, GetValue, IgnoreMarkup, Initialized, IsReadOnly, NotifyDataStoreValueUpdated, OnGetTextValue, OnSetLabelText, RefreshSubscriberValue, SaveSubscriberValue, SetBackgroundImage, SetDataStoreBinding, SetReadOnly, SetValue
Inherited Functions from Engine.UIObject
AddStyleSubscriber, AnimSetBottom, AnimSetColor, AnimSetLeft, AnimSetOpacity, AnimSetPosition, AnimSetRelPosition, AnimSetRight, AnimSetRotation, AnimSetScale, AnimSetTop, AnimSetVisibility, CanAcceptFocus, ClearDefaultDataBinding, ClearUIAnimation, FindStyleSubscriberIndex, FindStyleSubscriberIndexById, GenerateSceneDataStoreMarkup, GenerateTransformMatrix, GetAnchorPosition, GetDefaultDataBinding, GetDefaultDataStores, GetOwner, GetParent, GetPositionExtent, GetPositionExtents, GetRotationMatrix, GetScene, GetToolTipValue, HasTransform, IsContainedBy, IsDockedTo, IsPrivateBehaviorSet, LogRenderBounds, NeedsActiveCursorUpdates, NotifyValueChanged, OnSetDatastoreBinding, PlayUIAnimation, RemoveStyleSubscriber, ResolveDefaultDataBinding, ResolveStyles, RotateWidget, SetActiveCursorUpdate, SetAnchorPosition, SetDefaultDataBinding, SetDockPadding, SetDockParameters, SetDockTarget, SetForcedNavigationTarget, SetNavigationTarget, SetPrivateBehavior, SetWidgetStyleByName, StopUIAnimation, TickAnim, UIAnimEnd, UpdateRotationMatrix


Variables Detail

DecrementButton Source code

var private UINumericEditBoxButton DecrementButton;

IncrementButton Source code

var private UINumericEditBoxButton IncrementButton;
Buttons that can be used to increment and decrement the value stored in the input field.

Buttons

DecButton_Position Source code

var(Buttons) UIScreenValue_Bounds DecButton_Position;
The position of the faces of the Decrement button.

IncButton_Position Source code

var(Buttons) UIScreenValue_Bounds IncButton_Position;
The position of the faces of the increment button.

Style

DecrementStyle Source code

var(Style) UIStyleReference DecrementStyle;
the style to use for the editbox's decrement button

IncrementStyle Source code

var(Style) UIStyleReference IncrementStyle;
the style to use for the editbox's increment button

Text

DecimalPlaces Source code

var(Text) int DecimalPlaces;
The number of digits after the decimal point.

NumericValue Source code

var(Text) UIRangeData NumericValue;
The value and range parameters for this numeric editbox.


Functions Detail

DecrementValue Source code

native final function DecrementValue ( UIScreenObject Sender, int PlayerIndex )
Decrements the numeric editbox's value.
@param EventObject Object that issued the event.
@param PlayerIndex Player that performed the action that issued the event.

GetNumericValue Source code

native final const function float GetNumericValue ( ) con )
Gets the current value of this numeric editbox.

IncrementValue Source code

native final function IncrementValue ( UIScreenObject Sender, int PlayerIndex )
Increments the numeric editbox's value.
@param EventObject Object that issued the event.
@param PlayerIndex Player that performed the action that issued the event.

Initialized Source code

event Initialized ( ) )
Initializes the clicked delegates in the increment and decrement buttons to use the editbox's increment and decrement functions. @todo - this is a fix for the issue where delegates don't seem to be getting set properly in defaultproperties blocks.

PostInitialize Source code

event PostInitialize ( ) )
Propagate the enabled state of this widget.

SetNumericValue Source code

native final function bool SetNumericValue ( float NewValue, optional bool bForceRefreshString=false )
Change the value of this numeric editbox at runtime. Takes care of conversion from float to internal value string.
@param NewValue the new value for the editbox.
@param bForceRefreshString Forces a refresh of the string component, normally the string is only refreshed when the value is different from the current value.
@return TRUE if the editbox's value was changed


Defaultproperties

defaultproperties
{
   IncrementStyle=(DefaultStyleTag="ButtonBackground",RequiredStyleClass=Class'Engine.UIStyle_Image')
   DecrementStyle=(DefaultStyleTag="ButtonBackground",RequiredStyleClass=Class'Engine.UIStyle_Image')
   NumericValue=(MaxValue=100.000000,NudgeValue=1.000000)
   DecimalPlaces=4
   IncButton_Position=(Value[2]=1.000000,Value[3]=1.000000,ScaleType[0]=EVALPOS_PercentageOwner,ScaleType[1]=EVALPOS_PercentageOwner,ScaleType[2]=EVALPOS_PercentageOwner,ScaleType[3]=EVALPOS_PercentageOwner)
   DecButton_Position=(Value[2]=1.000000,Value[3]=1.000000,ScaleType[0]=EVALPOS_PercentageOwner,ScaleType[1]=EVALPOS_PercentageOwner,ScaleType[2]=EVALPOS_PercentageOwner,ScaleType[3]=EVALPOS_PercentageOwner)
   DataSource=(RequiredFieldType=DATATYPE_RangeProperty,MarkupString="Numeric Editbox Text")
   Begin Object Class=UIComp_DrawStringEditbox Name=EditboxStringRenderer ObjName=EditboxStringRenderer Archetype=UIComp_DrawStringEditbox'Engine.Default__UIEditBox:EditboxStringRenderer'
      ObjectArchetype=UIComp_DrawStringEditbox'Engine.Default__UIEditBox:EditboxStringRenderer'
   End Object
   StringRenderComponent=EditboxStringRenderer
   Begin Object Class=UIComp_DrawImage Name=EditboxBackgroundTemplate ObjName=EditboxBackgroundTemplate Archetype=UIComp_DrawImage'Engine.Default__UIEditBox:EditboxBackgroundTemplate'
      ObjectArchetype=UIComp_DrawImage'Engine.Default__UIEditBox:EditboxBackgroundTemplate'
   End Object
   BackgroundImageComponent=EditboxBackgroundTemplate
   CharacterSet=CHARSET_NumericOnly
   PrivateFlags=1024
   Begin Object Class=UIComp_Event Name=WidgetEventComponent ObjName=WidgetEventComponent Archetype=UIComp_Event'Engine.Default__UIEditBox:WidgetEventComponent'
      ObjectArchetype=UIComp_Event'Engine.Default__UIEditBox:WidgetEventComponent'
   End Object
   EventProvider=WidgetEventComponent
   Name="Default__UINumericEditBox"
   ObjectArchetype=UIEditBox'Engine.Default__UIEditBox'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: sk 18-3-2018 10:00:47.444 - Created with UnCodeX