Worst-case scenario: the UEd Goblin wipes the map and burns down your house.
UE3:UTUIOptionList (UDK)
Object >> UIRoot >> UIScreenObject >> UIObject >> UTUI_Widget >> UTDrawPanel >> UTUIOptionList |
Contents
- 1 Properties
- 1.1 Property group 'Data'
- 1.2 Property group 'UTUIOptionList'
- 1.3 Internal variables
- 1.3.1 ArrowColor
- 1.3.2 ArrowImage
- 1.3.3 bAnimatingBGPrefab
- 1.3.4 bDownArrowPressed
- 1.3.5 bDragging
- 1.3.6 BGPrefabInstance
- 1.3.7 bRegenOptions
- 1.3.8 bUpArrowPressed
- 1.3.9 CurrentIndex
- 1.3.10 DataProvider
- 1.3.11 DownArrowBounds
- 1.3.12 DragClickPosition
- 1.3.13 DragDeadZone
- 1.3.14 GeneratedObjects
- 1.3.15 LastDragSelection
- 1.3.16 MaxVisibleItems
- 1.3.17 PreviousIndex
- 1.3.18 ScrollArrowWidth
- 1.3.19 SelectionImage
- 1.3.20 SelectionSpeed
- 1.3.21 StartMovementTime
- 1.3.22 UpArrowBounds
- 1.3.23 VerticalScrollbar
- 1.4 Default values
- 1.5 Subobjects
- 2 Structs
- 3 Delegates
- 4 Functions
- 4.1 Native functions
- 4.1.1 ClearBoundDataStores
- 4.1.2 GetBoundDataStores
- 4.1.3 GetDataStoreBinding
- 4.1.4 InitializeComboboxWidgets
- 4.1.5 InitializeScrollbars
- 4.1.6 NotifyDataStoreValueUpdated
- 4.1.7 RefreshSubscriberValue
- 4.1.8 RegenerateOptions
- 4.1.9 RepositionOptions
- 4.1.10 SetDataStoreBinding
- 4.1.11 SetSelectedOptionIndex
- 4.2 Events
- 4.3 Other instance functions
- 4.3.1 CheckAndUpdateDragging
- 4.3.2 CheckArrowInput
- 4.3.3 ClickedScrollZone
- 4.3.4 CursorCheck
- 4.3.5 DrawSpecial
- 4.3.6 EnableItem
- 4.3.7 EnableItemAtIndex
- 4.3.8 GetCurrentlySelectedOption
- 4.3.9 GetMousePosition
- 4.3.10 GetObjectInfoIndexFromName
- 4.3.11 GetObjectInfoIndexFromObject
- 4.3.12 OnOption_NotifyActiveStateChanged
- 4.3.13 OnValueChanged
- 4.3.14 ProcessInputAxis
- 4.3.15 ProcessInputKey
- 4.3.16 RefreshAllOptions
- 4.3.17 ScrollVertical
- 4.3.18 SelectItem
- 4.3.19 SelectNextItem
- 4.3.20 SelectPreviousItem
- 4.1 Native functions
- Package:
- UTGame
- Implemented interfaces:
- UIDataStoreSubscriber
- This class in other games:
- UT3
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Options tab page, autocreates a set of options widgets using the datasource provided.
Properties
Property group 'Data'
DataSource
Type: UIRoot.UIDataStoreBinding
The data store that this list is bound to
Default value:
Member | Value |
---|---|
RequiredFieldType | DATATYPE_Collection |
Property group 'UTUIOptionList'
BGPrefab
Type: UIPrefab
Background prefab for the currently selected item.
Default value: UIPrefab'UI_Scenes_FrontEnd.Prefabs.OptionBG'
Internal variables
ArrowColor
Type: Object.Color
Default value:
Member | Value |
---|---|
A | 255 |
B | 1 |
G | 0 |
R | 128 |
ArrowImage
Type: Texture2D
Default value: Texture2D'UI_HUD.HUD.UI_HUD_BaseC'
bAnimatingBGPrefab
Type: bool
Modifiers: transient
Whether or not we are currently animating the background prefab.
bDownArrowPressed
Type: bool
Modifiers: transient
bDragging
Type: bool
Modifiers: transient
BGPrefabInstance
Type: UIPrefabInstance
Modifiers: transient
Instance of the background prefab.
bRegenOptions
Type: bool
Modifiers: transient
Flag to let the optionlist know that it should regenerate its options on next tick.
bUpArrowPressed
Type: bool
Modifiers: transient
CurrentIndex
Type: int
Modifiers: transient
Current option index.
DataProvider
Type: UIListElementProvider
Modifiers: const, transient
the list element provider referenced by DataSource
DownArrowBounds
Type: float
Array size: 4
Modifiers: transient
DragClickPosition
Type: Object.Vector
Modifiers: transient
Last time we changed the current selection due to dragging.
DragDeadZone
Type: float
Modifiers: transient
Current state of the arrows.
GeneratedObjects
Type: array<GeneratedObjectInfo>
Modifiers: transient
List of auto-generated objects, anything in this array will be removed from the children's array before presave.
LastDragSelection
Type: float
Modifiers: transient
Speed to increase or decrease the currently selected element when dragging, in seconds.
MaxVisibleItems
Type: int
Modifiers: transient
Maximum number of visible items.
PreviousIndex
Type: int
Modifiers: transient
Previously selected option index.
ScrollArrowWidth
Type: float
Properties for the scroll arrows.
Default value: 0.04
SelectionImage
Type: Texture2D
Default value: Texture2D'UI_HUD.HUD.UI_HUD_BaseD'
SelectionSpeed
Type: float
Modifiers: transient
StartMovementTime
Type: float
Modifiers: transient
Start time for animating option switches.
UpArrowBounds
Type: float
Array size: 4
Modifiers: transient
VerticalScrollbar
Type: UIScrollbar
Modifiers: transient
Scrollbar to let PC users scroll up and down the list freely.
Default values
Property | Value |
---|---|
bRequiresTick | True |
DefaultStates[3] | Class'Engine.UIState_Active' |
Subobjects
WidgetEventComponent
Class: Engine.UIComp_Event
Inherits from: UTDrawPanel.WidgetEventComponent
No new values.
Structs
GeneratedObjectInfo
Modifiers: native
Info about an option we have generated.
- name OptionProviderName
- UIObject LabelObj
- UIObject OptionObj
- UIDataProvider OptionProvider
- float OptionY
- float OptionHeight
- float OptionX
- float OptionWidth
Delegates
OnAcceptOptions
Accept button was pressed on the option list.
OnOptionChanged
Delegate for when the user changes one of the options in this option list.
OnOptionFocused
Delegate called when an option gains focus.
Functions
Native functions
ClearBoundDataStores
Specified by: UIDataStoreSubscriber.ClearBoundDataStores
Notifies this subscriber to unbind itself from all bound data stores
GetBoundDataStores
Specified by: UIDataStoreSubscriber.GetBoundDataStores
Retrieves the list of data stores bound by this subscriber.
Parameters:
- out_BoundDataStores - receives the array of data stores that subscriber is bound to.
GetDataStoreBinding
Specified by: UIDataStoreSubscriber.GetDataStoreBinding
Retrieves the markup string corresponding to the data store that this object is bound to.
Parameters:
- 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.
Returns:
- a datastore markup string which resolves to the datastore field that this object is bound to, in the format: <DataStoreTag:DataFieldTag>
InitializeComboboxWidgets
Initializes combobox widgets.
InitializeScrollbars
Initializes the scrollbar widget for the option list.
NotifyDataStoreValueUpdated
Specified by: UIDataStoreSubscriber.NotifyDataStoreValueUpdated
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.
Parameters:
- 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.
- 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.
- SourceProvider - for data stores which contain nested providers, the provider that contains the data which changed.
- ArrayIndex - for collection fields, indicates which element was changed. value of INDEX_NONE indicates not an array or that the entire array was updated.
RefreshSubscriberValue
Specified by: UIDataStoreSubscriber.RefreshSubscriberValue
Resolves this subscriber's data store binding and updates the subscriber with the current value from the data store.
Returns:
- TRUE if this subscriber successfully resolved and applied the updated value.
RegenerateOptions
Generates widgets for all of the options.
RepositionOptions
Repositions all of the visible options.
SetDataStoreBinding
Specified by: UIDataStoreSubscriber.SetDataStoreBinding
Sets the data store binding for this object to the text specified.
Parameters:
- MarkupText - a markup string which resolves to data exposed by a data store. The expected format is: <DataStoreTag:DataFieldTag>
- 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.
SetSelectedOptionIndex
Sets the currently selected option index.
Events
DrawPanel
Overrides: UTDrawPanel.DrawPanel
Render's the list's selection elements.
GetSupportedUIActionKeyNames
Overrides: UIScreenObject.GetSupportedUIActionKeyNames
Allow Script to add UI Actions
PostInitialize
Overrides: UIScreenObject.PostInitialize
Post initialize, binds callbacks for all of the generated options.
SetupOptionBindings
Sets up the option bindings.
Other instance functions
CheckAndUpdateDragging
If we are dragging, this function will increment the current selection based on the location of the mouse cursor.
CheckArrowInput
Checks to see if the user has clicked on the scroll arrows.
ClickedScrollZone
Handler for the vertical scrollbar's OnClickedScrollZone delegate. Scrolls the list by a full page (MaxVisibleItems).
Parameters:
- Sender - the scrollbar that was clicked.
- PositionPerc - a value from 0.0 - 1.0, representing the location of the click within the region between the increment and decrement buttons. Values closer to 0.0 means that the user clicked near the decrement button; values closer to 1.0 are nearer the increment button.
- PlayerIndex - Player that performed the action that issued the event.
CursorCheck
All are in pixels
Parameters:
- X1 - Left
- Y1 - Top
- X2 - Right
- Y2 - Bottom
Returns:
- true if the mouse is within the bounds given
DrawSpecial
EnableItem
Enables / disables an item in the list. If the item is the currently selected item, selects the next item in the list, if possible.
Parameters:
- OptionIdx - the index for the option that should be updated
- bShouldEnable - TRUE to enable the item; FALSE to disable.
Returns:
- TRUE if the item's state was successfully changed; FALSE if it couldn't be changed or OptionIdx was invalid.
EnableItemAtIndex
GetCurrentlySelectedOption
Returns the currently selected option object
GetMousePosition
Returns:
- the mouse position in widget space
GetObjectInfoIndexFromName
Returns:
- Returns the object info struct index given a provider namename.
GetObjectInfoIndexFromObject
Returns:
- Returns the object info struct given a sender object.
OnOption_NotifyActiveStateChanged
Callback for when the object's active state changes.
OnValueChanged
Overrides: UIObject.OnValueChanged
Callback for all of the options we generated.
ProcessInputAxis
Enable hottracking if we are dragging
ProcessInputKey
Provides a hook for unrealscript to respond to input using actual input key names (i.e. Left, Tab, etc.)
Called when an input key event is received which this widget responds to and is in the correct state to process. The keys and states widgets receive input for is managed through the UI editor's key binding dialog (F8).
This delegate is called BEFORE kismet is given a chance to process the input.
Parameters:
- EventParms - information about the input event.
Returns:
- TRUE to indicate that this input key was processed; no further processing will occur on this input key event.
RefreshAllOptions
Refreshes the value of all of the options by having them pull their options from the datastore again.
ScrollVertical
Handler for vertical scrolling activity PositionChange should be a number of nudge values by which the slider was moved
Parameters:
- Sender - the scrollbar that generated the event.
- PositionChange - indicates how many items to scroll the list by
- bPositionMaxed - indicates that the scrollbar's marker has reached its farthest available position, unused in this function
SelectItem
Selects the specified option item.
SelectNextItem
Selects the next item in the list.
SelectPreviousItem
Selects the previous item in the list.