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

UE2:UT2SP_PlayerTradePage (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
UT2004 Object >> GUI >> GUIComponent >> GUIMultiComponent >> GUIPage >> UT2K3GUIPage >> UT2DraftTeam >> UT2SP_PlayerTradePage
Package: 
XInterface
This class in other games:
UT2003

Class: XInterface.UT2SP_PlayerTradePage Parent: XInterface.UT2DraftTeam

Trade a player, similar to drafting process. author: capps Rearranged this so that player can only make a single swap, and once made, that's it.

Properties[edit]

butSwap[edit]

Type: GUIButton


CaptionBack[edit]

Type: string

Modifiers: localized


Default value: "BACK"

MessageTitle[edit]

Type: string

Modifiers: localized


Default value: "Single Player | Trade Opportunity"

MessageTradeCancel[edit]

Type: string

Modifiers: localized


Default value: "Are you sure you want to cancel the trade?"

MessageTradeConfirm[edit]

Type: string

Modifiers: localized


Default value: "Are you sure you want to trade %old% for %new%?"

MessageTradeInfo[edit]

Type: string

Modifiers: localized


Default value: "You have been offered a trade for %player%."

MessageTradePicHint[edit]

Type: string

Modifiers: localized


Default value: "This player is available for trade"

TradingPlayerName[edit]

Type: string


Default values[edit]

Property Value
bPlaySounds False
Controls[17] GUIButton'SPPTSwap'

Subobjects[edit]

SPPTSwap[edit]

Class: XInterface.GUIButton

Property Value
bFocusOnWatch True
Caption "SWAP"
Hint "Exchange this character with the active teammate"
WinHeight 0.076563
WinLeft 0.71125
WinTop 0.619584
WinWidth 0.132812

Functions[edit]

Events[edit]

Created[edit]

event Created ()

Overrides: UT2DraftTeam.Created


InitComponent[edit]

event InitComponent (GUIController MyController, GUIComponent MyOwner)

Overrides: UT2DraftTeam.InitComponent


Other instance functions[edit]

BeginConfirm[edit]

function BeginConfirm (byte bButton)


BuildStats[edit]

function BuildStats (out xUtil.PlayerRecord PR, GUIListBox charbox, GUIListBox teambox)

Overrides: UT2DraftTeam.BuildStats


ButtonClick[edit]

function bool ButtonClick (GUIComponent Sender)

Overrides: UT2DraftTeam.ButtonClick


CancelConfirm[edit]

function CancelConfirm (byte bButton)


Initialize[edit]

function Initialize (string playername)


MyOnChange[edit]

function MyOnChange (GUIComponent Sender)


SetPlayer[edit]

function SetPlayer (string playername)


SwapConfirm[edit]

function SwapConfirm (byte bButton)


UpdateDraftable[edit]

function UpdateDraftable (bool bAffordable)

Overrides: UT2DraftTeam.UpdateDraftable