UE3:UTUIPanel_MapCycle (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 09:11, 17 May 2008 by Wormbo (talk | contribs) (Auto-generated page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
UT3 Object >> UIRoot >> UIScreenObject >> UIObject >> UIContainer >> UITabPage >> UTTabPage >> UTUIPanel_MapCycle
Package:
UTGame
Implemented interfaces:
UIDataStoreSubscriber

Copyright 1998-2007 Epic Games, Inc. All Rights Reserved.

UI scene that allows the user to setup a map cycle.

Constants

MANUAL_LIST_REFRESH_DATABINDING_INDEX

Value: 50


Properties

AvailableList

Type: UIList

Modifiers: transient

List of available maps.

DescriptionLabel

Type: UILabel

Modifiers: transient

Label describing the currently selected map.

EnabledList

Type: UIList

Modifiers: transient

List of enabled maps.

LastFocused

Type: UIList

Modifiers: transient

The last focused UI List.

ListBackground_Available

Type: UIImage

Modifiers: transient


ListBackground_Enabled

Type: UIImage

Modifiers: transient


MenuDataStore

Type: UTUIDataStore_MenuItems

Modifiers: transient

Reference to the menu datastore

NumPlayersLabel

Type: UILabel

Modifiers: transient

Label for the number of players the maps supports.

ShiftDownButton

Type: UIButton

Modifiers: transient


ShiftDownLabel

Type: UILabel

Modifiers: transient


ShiftLeftImage

Type: UIImage

Modifiers: transient


ShiftRightImage

Type: UIImage

Modifiers: transient

Arrow images.

ShiftUpButton

Type: UIButton

Modifiers: transient

Reference to the shift up and down buttons.

ShiftUpLabel

Type: UILabel

Modifiers: transient

Shift up/down label callouts.

Subobjects

WidgetEventComponent

Class: Engine.UIComp_Event

Inherits from: UTTabPage.WidgetEventComponent

No new values.

Delegates

OnMapSelected

delegate OnMapSelected ()

Delegate for when the user selects a map on this page.

Functions

Events

PostInitialize

event PostInitialize ()

Overrides: UIScreenObject.PostInitialize

Post initialization event - Setup widget delegates.

Other instance functions

GenerateMapCycleList

function GenerateMapCycleList (out UTGame.GameMapCycle Cycle)

Converts the current map cycle to a string map names and stores them in the config saved array.

GetCurrentGameMode

function name GetCurrentGameMode ()


GetSelectedMap

function string GetSelectedMap ()

Returns:

Returns the first currently selected map.

HandleInputKey

function bool HandleInputKey (const out UIRoot.InputEventParameters EventParms)

Overrides: UTTabPage.HandleInputKey

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.

HandleRefreshSubscriberValue

function bool HandleRefreshSubscriberValue (UIObject Sender, int BindingIndex)

Called when this widget receives a call to RefreshSubscriberValue.

Parameters:

  • BindingIndex - optional parameter for indicating which data store binding is being refreshed, 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, while values greater than FIRST_DEFAULT_DATABINDING_INDEX correspond to tooltips and context menus.

Returns:

TRUE to indicate that this widget is going to refresh its value manually.

LoadMapCycle

function LoadMapCycle ()

Loads the map cycle for the current game mode and sets up the datastore's lists.

OnAccept

function OnAccept ()

The user has finished setting up their cycle and wants to save changes.

OnAvailableList_SubmitSelection

function OnAvailableList_SubmitSelection (UIList Sender, optional int PlayerIndex)

Callback for when the user submits the selection on the available list.

OnAvailableList_ValueChanged

function OnAvailableList_ValueChanged (UIObject Sender, int PlayerIndex)

Callback for when the user selects a new item in the available list.

OnButtonBar_Accept

function bool OnButtonBar_Accept (UIScreenObject InButton, int PlayerIndex)

Buttonbar Callbacks.

OnButtonBar_ClearMaps

function bool OnButtonBar_ClearMaps (UIScreenObject InButton, int PlayerIndex)


OnButtonBar_MoveMap

function bool OnButtonBar_MoveMap (UIScreenObject InButton, int PlayerIndex)


OnButtonBar_ShiftDown

function bool OnButtonBar_ShiftDown (UIScreenObject InButton, int PlayerIndex)


OnButtonBar_ShiftUp

function bool OnButtonBar_ShiftUp (UIScreenObject InButton, int PlayerIndex)


OnClearMaps

function OnClearMaps ()

Clears the enabled map list.

OnEnabledList_SubmitSelection

function OnEnabledList_SubmitSelection (UIList Sender, optional int PlayerIndex)

Callback for when the user submits the selection on the enabled list.

OnEnabledList_ValueChanged

function OnEnabledList_ValueChanged (UIObject Sender, int PlayerIndex)

Callback for when the user selects a new item in the enabled list.

OnList_NotifyActiveStateChanged

function OnList_NotifyActiveStateChanged (UIScreenObject Sender, int PlayerIndex, UIState NewlyActiveState, optional UIState PreviouslyActiveState)

Callback for when the object's active state changes.

OnMapList_RawInputKey

function bool OnMapList_RawInputKey (const out UIRoot.InputEventParameters EventParms)

Callback for the map lists, captures the accept button before the lists get to it.

OnMapListChanged

function OnMapListChanged ()

Called whenever one of the map lists changes.

OnMoveMap

function OnMoveMap ()

Callback for when the user tries to move a map from one list to another.

OnSelectedMapChanged

function OnSelectedMapChanged ()

Updates widgets when the currently selected map changes.

OnShiftMap

function OnShiftMap (bool bShiftUp)

Shifts maps up and down in the map cycle.

SaveMapCycle

function SaveMapCycle ()

Transfers the current map cycle in the menu datastore to our array of config saved map cycles for each gamemode.

SelectBestList

function SelectBestList ()

Selects the best list depending on which list has currently available maps.

SetupButtonBar

function SetupButtonBar (UTUIButtonBar ButtonBar)

Overrides: UTTabPage.SetupButtonBar

Sets up the button bar for the parent scene.

UpdateDescriptionLabel

function UpdateDescriptionLabel ()

Updates the description label.