The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE3:UIDataStore_MenuItems (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UDK Object >> UIRoot >> UIDataProvider >> UIDataStore >> UIDataStore_GameResource >> UIDataStore_MenuItems
Package: 
Engine
Implemented interfaces
UIListElementProvider

This data store provides information for automatically generating lists of widgets given a collection of metadata provided by the UIDataProvider_MenuItem class.

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

Properties[edit]

CurrentGameSettingsTag[edit]

Type: name

Modifiers: const

the tag used to retrieve the menu items for the gametype options of the OnlineGameSettings datastore's selected game configuration.

Default value: 'CurrentGameSettings'

DynamicProviders[edit]

Type: array<UIDataProvider_MenuItem>

Modifiers: transient

Array of dynamically created providers.

OptionProviders[edit]

Type: Object.MultiMap_Mirror{TMultiMap<FName, class UUIDataProvider_MenuItem*>}

Modifiers: const, private, native, transient

collection of providers per part type.

Default values[edit]

Property Value
ElementProviderTypes[0] No value definitions.
Tag 'MenuItems'

Functions[edit]

Native functions[edit]

AppendToSet[edit]

native function AppendToSet (name SetName, int NumOptions)

Appends N amount of providers to the specified set.

Parameters:

  • SetName - Set to append to
  • NumOptions - Number of options to append

ClearSet[edit]

native function ClearSet (name SetName)

Clears all options in the specified set.

Parameters:

  • SetName - Set to clear

GetSet[edit]

native function GetSet (name SetName, out array<UIDataProvider_MenuItemOutProviders)

Retrieves a set of option providers.

Parameters:

  • SetName - Set to retrieve
  • OutProviders - Storage array for resulting providers.

Events[edit]

Registered[edit]

event Registered (LocalPlayer PlayerOwner)

Overrides: UIDataStore.Registered

Called when this data store is added to the data store manager's list of active data stores.

Parameters:

  • PlayerOwner - the player that will be associated with this DataStore. Only relevant if this data store is associated with a particular player; NULL if this is a global data store.

Unregistered[edit]

event Unregistered (LocalPlayer PlayerOwner)

Overrides: UIDataStore.Unregistered

Called when this data store is removed from the data store manager's list of active data stores.

Parameters:

  • PlayerOwner - the player that will be associated with this DataStore. Only relevant if this data store is associated with a particular player; NULL if this is a global data store.

Other instance functions[edit]

OnGameSettingsChanged[edit]

function OnGameSettingsChanged (UIDataProvider SourceProvider, optional name PropTag)

Handler for the OnlineGameSettings data store's OnDataProviderPropertyChange delegate. When the selected gametype is changed, updates the current game option set.

Parameters:

  • SourceProvider - the data provider that generated the notification
  • PropTag - the property that changed