I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

UE2:UT2K4SP_TeamRoles (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> GUI >> GUIComponent >> GUIMultiComponent >> GUIPage >> UT2K4GUIPage >> PopupPageBase >> FloatingWindow >> LargeWindow >> UT2K4SP_TeamRoles
Package: 
GUI2K4

Set the team roles for the next match

Written by Michiel Hendriks (c) 2003, Epic Games, Inc. All Rights Reserved

Properties[edit]

AccuracyCaption[edit]

Type: string

Modifiers: localized


Default value: "Accuracy:"

AggressionCaption[edit]

Type: string

Modifiers: localized


Default value: "Aggressiveness:"

AgilityCaption[edit]

Type: string

Modifiers: localized


Default value: "Agility:"

AssignedRoles[edit]

Type: int

Currently assigned roles

bNoBalanceCheck[edit]

Type: bool

if true no balance check is done

btnCancel[edit]

Type: GUIButton

Modifiers: automated


Default value: GUIButton'SPTbtnCancel'

btnOk[edit]

Type: GUIButton

Modifiers: automated


Default value: GUIButton'SPMbtnOk'

cbRoles[edit]

Type: array<GUIComboBox>


CurrentFee[edit]

Type: int

the fee for the currently selected team

GP[edit]

Type: UT2K4GameProfile


imgFaces[edit]

Type: array<GUIImage>


InactiveMsg[edit]

Type: string

Modifiers: localized


Default value: "INACTIVE"

InjuredCaption[edit]

Type: string

Modifiers: localized


Default value: "INJURED"

lblBalance[edit]

Type: GUILabel

Modifiers: automated


Default value: GUILabel'SPTlblBalance'

lblInfo[edit]

Type: GUILabel

Modifiers: automated


Default value: GUILabel'SPTlblInfo'

lblNoMoney[edit]

Type: GUILabel

Modifiers: automated


Default value: GUILabel'SPTlblNoMoney'

lblTitle[edit]

Type: GUILabel

Modifiers: automated


Default value: GUILabel'SPTlblTitle'

MaxTeamMates[edit]

Type: int

Used to check the number of roles assigned

MinimalFeeCaption[edit]

Type: string

Modifiers: localized


Default value: "Minimal fee:|%fee%"

PortraitBGMat[edit]

Type: Material


Default value: Material'2K4Menus.Controls.sectionback'

sbCharInfo[edit]

Type: GUIScrollTextBox

Modifiers: automated


Default value: GUIScrollTextBox'SPTsbCharInfo'

TacticsCaption[edit]

Type: string

Modifiers: localized


Default value: "Tactics:"

TeamFee[edit]

Type: array<int>

used to check if the current team can be payed

Default values[edit]

See UT2K4SP_TeamRoles defaults.

Delegates[edit]

OnOkClick[edit]

delegate OnOkClick ()

Will be called when the user clicks the "ok" button

Functions[edit]

Events[edit]

HandleParameters[edit]

event HandleParameters (string Param1, string Param2)

Overrides: GUIPage.HandleParameters


InitComponent[edit]

event InitComponent (GUIController MyController, GUIComponent MyOwner)

Overrides: FloatingWindow.InitComponent


Other instance functions[edit]

drawButtons[edit]

function drawButtons ()

draw team member faces and role selection controlls

InternalOnClick[edit]

function bool InternalOnClick (GUIComponent Sender)


onRoleChange[edit]

function onRoleChange (GUIComponent Sender)

A role has changed, check the constraints

setOkButtonState[edit]

function setOkButtonState ()


ShowPlayerDetails[edit]

function bool ShowPlayerDetails (GUIComponent Sender)