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

Engine.UISlider

Extends
UIObject
Modifiers
native ( UIPrivate ) implements ( UIDataStorePublisher )

This widget presents the user with an interface for choosing a value within a certain range. Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. @todo - make rendering the caption optional @todo - hook up data store resolution

Core.Object
|   
+-- Engine.UIRoot
   |   
   +-- Engine.UIScreenObject
      |   
      +-- Engine.UIObject
         |   
         +-- Engine.UISlider

Direct Known Subclasses:

UTUISlider

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

Variables Summary
Data
UIComp_DrawStringSliderCaptionRenderComponent
UIDataStoreBindingDataSource
Image
UIComp_DrawImageBackgroundImageComponent
UIComp_DrawImageMarkerImageComponent
UIComp_DrawImageSliderBarImageComponent
Slider
UIScreenValue_ExtentBarSize
boolbRenderCaption
UIScreenValue_ExtentMarkerHeight
UIScreenValue_ExtentMarkerWidth
EUIOrientationSliderOrientation
UIRangeDataSliderValue
Sound
nameDecrementCue
nameIncrementCue
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
Inherited Variables from Engine.UIScreenObject
bHidden, bInitialized, bNeverFocus, bSupports3DPrimitives, Children, DefaultStates, EventProvider, FocusControls, FocusedCue, FocusPropagation, InactiveStates, InitialState, MouseEnterCue, NavigateDownCue, NavigateLeftCue, NavigateRightCue, NavigateUpCue, Opacity, PlayerInputMask, Position, StateStack, ZDepth

Functions Summary
function ClearBoundDataStores ()
function GetBoundDataStores (out array<UIDataStore> out_BoundDataStores)
functionstring GetDataStoreBinding (optional int BindingIndex=INDEX_NONE ) con)
functionfloat GetValue (optional bool bPercentageValue ) con)
function NotifyDataStoreValueUpdated (UIDataStore SourceDataStore, bool bValuesInvalidated, name PropertyTag, UIDataProvider SourceProvider, int ArrayIndex)
function OnStateChanged (UIScreenObject Sender, int PlayerIndex, UIState NewlyActiveState, optional UIState PreviouslyActiveState ))
functionbool RefreshSubscriberValue (optional int BindingIndex=INDEX_NONE)
functionbool SaveSubscriberValue (out array<UIDataStore> out_BoundDataStores, optional int BindingIndex=INDEX_NONE)
function SetBackgroundImage (Surface NewImage ))
function SetBarImage (Surface NewImage ))
function SetDataStoreBinding (string MarkupText, optional int BindingIndex=INDEX_NONE)
function SetMarkerImage (Surface NewImage ))
functionbool SetValue (coerce float NewValue, optional bool bPercentageValue)
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
Inherited Functions from Engine.UIScreenObject
AcceptsPlayerInput, ActivateEventByClass, ActivateState, ActivateStateByClass, AddedChild, CanAcceptFocus, CanPlayOnline, CanPropagateFocusFor, CanvasToScreen, ConditionalPropagateEnabledState, ContainsChild, ContainsChildOfClass, CreatePlayerData, CreateWidget, DeactivateState, DeactivateStateByClass, DeProject, DisablePlayerInput, DisableWidget, EnablePlayerInput, EnableWidget, FindChild, FindChildIndex, FindChildUsingID, FindEventsOfClass, FocusFirstControl, FocusLastControl, GetActivePlayerCount, GetAspectRatioAutoScaleFactor, GetBestControllerId, GetBestPlayerIndex, GetBounds, GetCanvasToScreen, GetChildren, GetCurrentState, GetDockedWidgets, GetFocusedControl, GetInverseCanvasToScreen, GetLastFocusedControl, GetLoginStatus, GetNATType, GetObjectCount, GetParent, GetPlayerOwner, GetPosition, GetPositionVector, GetSupportedPlayerCount, GetSupportedUIActionKeyNames, GetViewportHeight, GetViewportOffset, GetViewportOrigin, GetViewportScale, GetViewportSize, GetViewportWidth, GetWidgetPathName, HasActiveStateOfClass, HasLinkConnection, Initialize, Initialized, InitializePlayerTracking, InsertChild, IsActive, IsEnabled, IsFocused, IsHidden, IsHoldingAlt, IsHoldingCtrl, IsHoldingShift, IsInitialized, IsLoggedIn, IsNeverFocused, IsPressed, IsVisible, KillFocus, LogCurrentState, NavigateFocus, NextControl, OnChangeVisibility, OnConsoleCommand, OnSetControllerId, OnShowAchievementsUI, OnShowContentMarketplaceUI, OnShowFeedbackUI, OnShowFriendInviteUI, OnShowFriendsUI, OnShowGamerCardUI, OnShowMembershipMarketplaceUI, OnShowMessagesUI, OnShowPlayersUI, OverrideLastFocusedControl, PixelToCanvas, PixelToScreen, PlayUISound, PostInitialize, PrevControl, PrivateSetVisibility, Project, RebuildNavigationLinks, RemoveChild, RemoveChildren, RemovedChild, RemovedFromParent, RemovePlayerData, ReplaceChild, RequestFormattingUpdate, RequestPrimitiveReview, RequestSceneUpdate, ScreenToCanvas, ScreenToPixel, SetEnabled, SetFocus, SetFocusToChild, SetInputMask, SetPosition, SetVisibility


Variables Detail

Data

CaptionRenderComponent Source code

var(Data) editinline const UIComp_DrawStringSlider CaptionRenderComponent;
Renders the caption for this slider

DataSource Source code

var(Data) editconst private UIDataStoreBinding DataSource;
The data source that this slider's value will be linked to.

Image

BackgroundImageComponent Source code

var(Image) editinline const noclear UIComp_DrawImage BackgroundImageComponent;
Component for rendering the slider background image

MarkerImageComponent Source code

var(Image) editinline const noclear UIComp_DrawImage MarkerImageComponent;
Component for rendering the slider marker image

SliderBarImageComponent Source code

var(Image) editinline const noclear UIComp_DrawImage SliderBarImageComponent;
Component for rendering the slider bar image

Slider

BarSize Source code

var(Slider) UIScreenValue_Extent BarSize;
Controls the size of the slider's bar. If slider is horizontal, controls the height of the bar; if slider is vertical, controls the width of the bar

bRenderCaption Source code

var(Slider) bool bRenderCaption;
Controls whether the caption is rendered above the slider marker

MarkerHeight Source code

var(Slider) UIScreenValue_Extent MarkerHeight;
@fixme - temp....the size of the region to use for rendering the marker

MarkerWidth Source code

var(Slider) UIScreenValue_Extent MarkerWidth;
@fixme - temp....the size of the region to use for rendering the marker

SliderOrientation Source code

var(Slider) EUIOrientation SliderOrientation;
Controls whether this slider is vertical or horizontal not fully implemented

SliderValue Source code

var(Slider) UIRangeData SliderValue;
The value and range parameters for this slider.

Sound

DecrementCue Source code

var(Sound) name DecrementCue;
this sound is played when the slider is decremented

IncrementCue Source code

var(Sound) name IncrementCue;
this sound is played when the slider is incremented


Functions Detail

ClearBoundDataStores Source code

native final function ClearBoundDataStores ( )
Notifies this subscriber to unbind itself from all bound data stores

GetBoundDataStores Source code

native final virtual function GetBoundDataStores ( out array<UIDataStore> out_BoundDataStores )
Retrieves the list of data stores bound by this subscriber.
@param out_BoundDataStores receives the array of data stores that subscriber is bound to.

GetDataStoreBinding Source code

native final virtual const function string GetDataStoreBinding ( optional int BindingIndex=INDEX_NONE ) con )
Retrieves the markup string corresponding to the data store that this object is bound to.
@param BindingIndex optional parameter for indicating which data store binding is being requested for those objects which have multiple data store bindings. How this parameter is used is up to the class which implements this interface, but typically the "primary" data store will be index 0.
@return a datastore markup string which resolves to the datastore field that this object is bound to, in the format:

GetValue Source code

native final const function float GetValue ( optional bool bPercentageValue ) con )
Gets the current value of this slider
@param bPercentageValue TRUE to format the result as a percentage of the total range of this slider.

NotifyDataStoreValueUpdated Source code

native final virtual function NotifyDataStoreValueUpdated ( UIDataStore SourceDataStore, bool bValuesInvalidated, name PropertyTag, UIDataProvider SourceProvider, int ArrayIndex )
Handler for the UIDataStore.OnDataStoreValueUpdated delegate. Used by data stores to indicate that some data provided by the data has changed. Subscribers should use this function to refresh any data store values being displayed with the updated value. notify subscribers when they should refresh their values from this data store.
@param SourceDataStore the data store that generated the refresh notification; useful for subscribers with multiple data store bindings, to tell which data store sent the notification.
@param PropertyTag the tag associated with the data field that was updated; Subscribers can use this tag to determine whether there is any need to refresh their data values.
@param SourceProvider for data stores which contain nested providers, the provider that contains the data which changed.
@param ArrayIndex for collection fields, indicates which element was changed. value of INDEX_NONE indicates not an array or that the entire array was updated.

OnStateChanged Source code

final function OnStateChanged ( UIScreenObject Sender, int PlayerIndex, UIState NewlyActiveState, optional UIState PreviouslyActiveState ) )
Called when a new UIState becomes the widget's currently active state, after all activation logic has occurred.
@param Sender the widget that changed states.
@param PlayerIndex the index [into the GamePlayers array] for the player that activated this state.
@param NewlyActiveState the state that is now active
@param PreviouslyActiveState the state that used the be the widget's currently active state.

RefreshSubscriberValue Source code

native final virtual function bool RefreshSubscriberValue ( optional int BindingIndex=INDEX_NONE )
Resolves this subscriber's data store binding and updates the subscriber with the current value from the data store.
@return TRUE if this subscriber successfully resolved and applied the updated value.

SaveSubscriberValue Source code

native final virtual function bool SaveSubscriberValue ( out array<UIDataStore> out_BoundDataStores, optional int BindingIndex=INDEX_NONE )
Resolves this subscriber's data store binding and publishes this subscriber's value to the appropriate data store.
@param out_BoundDataStores contains the array of data stores that widgets have saved values to. Each widget that implements this method should add its resolved data store to this array after data values have been published. Once SaveSubscriberValue has been called on all widgets in a scene, OnCommit will be called on all data stores in this array.
@param BindingIndex optional parameter for indicating which data store binding is being requested for those objects which have multiple data store bindings. How this parameter is used is up to the class which implements this interface, but typically the "primary" data store will be index 0.
@return TRUE if the value was successfully published to the data store.

SetBackgroundImage Source code

final function SetBackgroundImage ( Surface NewImage ) )
Changes the background image for this slider, creating the wrapper UITexture if necessary.
@param NewBarImage the new surface to use for the slider's background image

SetBarImage Source code

final function SetBarImage ( Surface NewImage ) )
Changes the bar image for this slider, creating the wrapper UITexture if necessary.
@param NewBarImage the new surface to use for the slider's bar image

SetDataStoreBinding Source code

native final virtual function SetDataStoreBinding ( string MarkupText, optional int BindingIndex=INDEX_NONE )
Sets the data store binding for this object to the text specified.
@param MarkupText a markup string which resolves to data exposed by a data store. The expected format is:
@param BindingIndex optional parameter for indicating which data store binding is being requested for those objects which have multiple data store bindings. How this parameter is used is up to the class which implements this interface, but typically the "primary" data store will be index 0.

SetMarkerImage Source code

final function SetMarkerImage ( Surface NewImage ) )
Changes the marker image for this slider, creating the wrapper UITexture if necessary.
@param NewImage the new surface to use for slider's marker

SetValue Source code

native final function bool SetValue ( coerce float NewValue, optional bool bPercentageValue )
Change the value of this slider at runtime.
@param NewValue the new value for the slider.
@param bPercentageValue TRUE indicates that the new value is formatted as a percentage of the total range of this slider.
@return TRUE if the slider's value was changed


Defaultproperties

defaultproperties
{
   Begin Object Class=UIComp_DrawImage Name=SliderBackgroundImageTemplate ObjName=SliderBackgroundImageTemplate Archetype=UIComp_DrawImage'Engine.Default__UIComp_DrawImage'
      StyleResolverTag="Slider Background Style"
      ImageStyle=(DefaultStyleTag="DefaultSliderStyle")
      Name="SliderBackgroundImageTemplate"
      ObjectArchetype=UIComp_DrawImage'Engine.Default__UIComp_DrawImage'
   End Object
   BackgroundImageComponent=SliderBackgroundImageTemplate
   Begin Object Class=UIComp_DrawImage Name=SliderBarImageTemplate ObjName=SliderBarImageTemplate Archetype=UIComp_DrawImage'Engine.Default__UIComp_DrawImage'
      StyleResolverTag="Slider Bar Style"
      ImageStyle=(DefaultStyleTag="DefaultSliderBarStyle")
      Name="SliderBarImageTemplate"
      ObjectArchetype=UIComp_DrawImage'Engine.Default__UIComp_DrawImage'
   End Object
   SliderBarImageComponent=SliderBarImageTemplate
   Begin Object Class=UIComp_DrawImage Name=SliderMarkerImageTemplate ObjName=SliderMarkerImageTemplate Archetype=UIComp_DrawImage'Engine.Default__UIComp_DrawImage'
      StyleResolverTag="Slider Marker Style"
      ImageStyle=(DefaultStyleTag="DefaultSliderMarkerStyle")
      Name="SliderMarkerImageTemplate"
      ObjectArchetype=UIComp_DrawImage'Engine.Default__UIComp_DrawImage'
   End Object
   MarkerImageComponent=SliderMarkerImageTemplate
   DataSource=(RequiredFieldType=DATATYPE_RangeProperty)
   SliderValue=(MaxValue=100.000000,NudgeValue=1.000000)
   bRenderCaption=True
   BarSize=(Value=32.000000)
   MarkerHeight=(Value=16.000000,Orientation=UIORIENT_Vertical)
   MarkerWidth=(Value=16.000000)
   IncrementCue="SliderIncrement"
   DecrementCue="SliderDecrement"
   PrimaryStyle=(DefaultStyleTag="DefaultSliderStyle",RequiredStyleClass=Class'Engine.UIStyle_Image')
   bSupportsPrimaryStyle=False
   Position=(Value[3]=32.000000,ScaleType[3]=EVALPOS_PixelOwner)
   DefaultStates(2)=Class'Engine.UIState_Focused'
   DefaultStates(3)=Class'Engine.UIState_Active'
   DefaultStates(4)=Class'Engine.UIState_Pressed'
   Begin Object Class=UIComp_Event Name=WidgetEventComponent ObjName=WidgetEventComponent Archetype=UIComp_Event'Engine.Default__UIObject:WidgetEventComponent'
      ObjectArchetype=UIComp_Event'Engine.Default__UIObject:WidgetEventComponent'
   End Object
   EventProvider=WidgetEventComponent
   Name="Default__UISlider"
   ObjectArchetype=UIObject'Engine.Default__UIObject'
}

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