My program doesn't have bugs. It just develops random features.

UE3:UTUIFrontEnd_WeaponPreference (UT3)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT3 Object >> UIRoot >> UIScreenObject >> UIScene >> UTUIScene >> UTUIFrontEnd >> UTUIFrontEnd_WeaponPreference
Package: 
UTGame

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

UI scene that allows the user to set their weapon preferences.

Properties[edit]

Property group 'UTUIFrontEnd_WeaponPreference'[edit]

BaseWeaponHeight[edit]

Type: float

Weapon scale factor to use in 1024x768

Default value: 256.0

Internal variables[edit]

DescriptionLabel[edit]

Type: UILabel

Modifiers: transient

Description of the currently selected weapon.

DescriptionScroller[edit]

Type: UIScrollFrame

Modifiers: transient

scrollframe which contains the description label - allows the player to read long descriptions

DetailsLabel[edit]

Type: UILabel

Modifiers: transient

Label with the name of the currently selected weapon.

MenuDataStore[edit]

Type: UTUIDataStore_MenuItems

Modifiers: transient

Reference to the menu datastore

OldPriorities[edit]

Type: array<float>

default weapon priorities when entering the scene.

ShiftDownButton[edit]

Type: UIButton

Modifiers: transient


ShiftDownLabel[edit]

Type: UILabel

Modifiers: transient


ShiftUpButton[edit]

Type: UIButton

Modifiers: transient

Reference to the shift up and down buttons.

ShiftUpLabel[edit]

Type: UILabel

Modifiers: transient

Shift up/down label callouts.

WeaponClasses[edit]

Type: array<class<UTWeapon> >

Modifiers: transient

Weapon classes.

WeaponList[edit]

Type: UIList

Modifiers: transient

List of weapons.

WeaponMesh[edit]

Type: UTUIMeshWidget

Modifiers: transient

Weapon mesh widget.

Subobjects[edit]

SceneEventComponent[edit]

Class: Engine.UIComp_Event

Inherits from: UTUIFrontEnd.SceneEventComponent

No new values.

Delegates[edit]

MarkDirty[edit]

delegate MarkDirty ()


Functions[edit]

Native functions[edit]

LoadINIDefaults[edit]

native function LoadINIDefaults ()

Loads the default weapon priorities from the INI file.

Events[edit]

GetWeaponClass[edit]

event class<UTWeaponGetWeaponClass (string ClassName)

Gets a priority for a weapon given its classname.

PostInitialize[edit]

event PostInitialize ()

Overrides: UTUIFrontEnd.PostInitialize

Post initialize callback.

SceneActivated[edit]

event SceneActivated (bool bInitialActivation)

Overrides: UTUIFrontEnd.SceneActivated

Called just after the scene is added to the ActiveScenes array, or when this scene has become the active scene as a result of closing another scene.

Parameters:

  • bInitialActivation - TRUE if this is the first time this scene is being activated; FALSE if this scene has become active as a result of closing another scene or manually moving this scene in the stack.

Other instance functions[edit]

HandleInputKey[edit]

function bool HandleInputKey (const out UIRoot.InputEventParameters EventParms)

Overrides: UTUIFrontEnd.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.

InitializeWeaponList[edit]

function InitializeWeaponList ()

Initializes the weapon list.

OnAccept[edit]

function OnAccept ()

Callback for when the user has accepted their weapon preferences.

OnBack[edit]

function OnBack ()

Callback for when the user wants to back out of the scene.

OnButtonBar_Accept[edit]

function bool OnButtonBar_Accept (UIScreenObject InButton, int PlayerIndex)


OnButtonBar_Back[edit]

function bool OnButtonBar_Back (UIScreenObject InButton, int PlayerIndex)


OnButtonBar_ResetToDefaults[edit]

function bool OnButtonBar_ResetToDefaults (UIScreenObject InButton, int PlayerIndex)


OnButtonBar_ShiftDown[edit]

function bool OnButtonBar_ShiftDown (UIScreenObject InButton, int PlayerIndex)


OnButtonBar_ShiftUp[edit]

function bool OnButtonBar_ShiftUp (UIScreenObject InButton, int PlayerIndex)

Button bar callbacks.

OnResetToDefaults[edit]

function OnResetToDefaults ()

Resets the weapon order to its defaults.

OnShiftWeapon[edit]

function OnShiftWeapon (bool bShiftUp)

Shifts the currently selected weapon up or down in the weapon preference order.

OnWeaponList_RawInputKey[edit]

function bool OnWeaponList_RawInputKey (const out UIRoot.InputEventParameters EventParms)

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

OnWeaponList_ValueChanged[edit]

function OnWeaponList_ValueChanged (UIObject Sender, int PlayerIndex)

Updates the description and preview image for the currently selected weapon when the user changes the currently selected weapon.

SetupButtonBar[edit]

function SetupButtonBar ()

Overrides: UTUIFrontEnd.SetupButtonBar

Sets up the button bar for the parent scene.