Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

GUI2K4.UT2K4SPTab_LadderBase

Extends
UT2K4SPTab_Base
Modifiers
abstract

Core.Object
|   
+-- XInterface.GUI
   |   
   +-- XInterface.GUIComponent
      |   
      +-- XInterface.GUIMultiComponent
         |   
         +-- XInterface.GUIPanel
            |   
            +-- XInterface.GUITabPanel
               |   
               +-- XInterface.UT2K4TabPanel
                  |   
                  +-- GUI2K4.UT2K4SPTab_Base
                     |   
                     +-- GUI2K4.UT2K4SPTab_LadderBase

Direct Known Subclasses:

UT2K4SPTab_Ladder, UT2K4SPTab_SingleLadder

Variables Summary
CacheManager.MapRecordActiveMap
floatAnimTime
stringBalanceLabel
GUIButtonbtnChallengeMap
colorclEntryFail
colorclEntryMatch
stringEntryFee
GUIImageimgMatchShot
GUILabellblBalance
GUILabellblMatchEntryFee
GUILabellblMatchPrice
GUILabellblNoMoney
stringMapChallengeWindow
stringNotEnoughPlayers
stringPrizeMoney
UT2K4SP_TeamRolesRoleWindow
GUIScrollTextBoxsbDetails
GUISectionBackgroundsbgDetail
GUISectionBackgroundsbgMatch
UT2K4LadderButtonSelectedMatch
stringTeamRoleWindow
Inherited Variables from GUI2K4.UT2K4SPTab_Base
CaptionBack, CaptionCancel, CaptionCreate, CaptionDone, CaptionLoad, CaptionPlay, GP, LogPrefix, MainWindow, ProfileClass

Structures Summary
AnimData
X, Y

Functions Summary
functionarray<UT2K4LadderButtonCreateHButtons (int ladderId, float LadderTop, float LadderLeft, float LadderWidth, optional bool bHidden)
functionarray<UT2K4LadderButtonCreateVButtons (int ladderId, float LadderTop, float LadderLeft, float LadderHeight, optional bool bHidden)
function DoAnimate (array<UT2K4LadderButton> buttons, array<AnimData> data, optional bool reset)
functionint GetLadderProgress (int ladderindex)
functionstring GetMapDecription (CacheManager.MapRecord MR)
functionstring getMatchCaption (UT2K4MatchInfo mi)
functionarray<AnimDataInitAnimData (array<UT2K4LadderButton> buttons)
function LadderButtonOnArrival (GUIComponent Sender, EAnimationType Type)
function MapChallengeUpdate ()
function moveMatchInfo (optional float topDelta, optional float leftDelta)
functionbool OnMapChallenge (GUIComponent Sender)
functionbool onMatchClick (GUIComponent Sender)
functionbool onMatchDblClick (GUIComponent Sender)
functionbool onPlayClick ()
function selectNextMatch ()
function showMatchDetails (UT2K4MatchInfo mi)
function ShowPanel (bool bShow)
function StartMatch ()
function UpdateBalance ()
function updateButton (UT2K4LadderButton btn, int ladderId, int matchId)
Inherited Functions from GUI2K4.UT2K4SPTab_Base
btnPlayEnabled, CanClose, GetMainWindow, getProfileName, InitComponent, onBackClick, onPlayClick, ShowPanel


Variables Detail

ActiveMap Source code

var CacheManager.MapRecord ActiveMap;

AnimTime Source code

var float AnimTime;
duration of the button animation

BalanceLabel Source code

var localized string BalanceLabel;

btnChallengeMap Source code

var automated GUIButton btnChallengeMap;

clEntryFail Source code

var color clEntryFail;
colors used for the entry fee

clEntryMatch Source code

var color clEntryMatch;
colors used for the entry fee

EntryFee Source code

var localized string EntryFee;

imgMatchShot Source code

var automated GUIImage imgMatchShot;

lblBalance Source code

var automated GUILabel lblBalance;

lblMatchEntryFee Source code

var automated GUILabel lblMatchEntryFee;

lblMatchPrice Source code

var automated GUILabel lblMatchPrice;

lblNoMoney Source code

var automated GUILabel lblNoMoney;

MapChallengeWindow Source code

var string MapChallengeWindow;
The map challenge window

NotEnoughPlayers Source code

var localized string NotEnoughPlayers;

PrizeMoney Source code

var localized string PrizeMoney;

RoleWindow Source code

var UT2K4SP_TeamRoles RoleWindow;

sbDetails Source code

var automated GUIScrollTextBox sbDetails;

sbgDetail Source code

var automated GUISectionBackground sbgDetail;

sbgMatch Source code

var automated GUISectionBackground sbgMatch;

SelectedMatch Source code

var UT2K4LadderButton SelectedMatch;

TeamRoleWindow Source code

var string TeamRoleWindow;
This window will be displayed before each team match to assign the roles of the team mates


Structures Detail

AnimData Source code

struct AnimData
{
var float X;
var float Y;
};
used for button animation


Functions Detail

CreateHButtons Source code

function array<UT2K4LadderButton> CreateHButtons ( int ladderId, float LadderTop, float LadderLeft, float LadderWidth, optional bool bHidden )
Create the ladder buttons, horizontal layout Should be called during InitComponent()

CreateVButtons Source code

function array<UT2K4LadderButton> CreateVButtons ( int ladderId, float LadderTop, float LadderLeft, float LadderHeight, optional bool bHidden )
Create the ladder buttons Should be called during InitComponent()

DoAnimate Source code

function DoAnimate ( array<UT2K4LadderButton> buttons, array<AnimData> data, optional bool reset )
animate the button

GetLadderProgress Source code

function int GetLadderProgress ( int ladderindex )

GetMapDecription Source code

function string GetMapDecription ( CacheManager.MapRecord MR )
return the map description

getMatchCaption Source code

function string getMatchCaption ( UT2K4MatchInfo mi )

InitAnimData Source code

function array<AnimData> InitAnimData ( array<UT2K4LadderButton> buttons )
initialize buttons for animation

LadderButtonOnArrival Source code

function LadderButtonOnArrival ( GUIComponent Sender, EAnimationType Type )
to show the progress bar again

MapChallengeUpdate Source code

function MapChallengeUpdate ( )

moveMatchInfo Source code

function moveMatchInfo ( optional float topDelta, optional float leftDelta )
Move the match information components to a new location

OnMapChallenge Source code

function bool OnMapChallenge ( GUIComponent Sender )

onMatchClick Source code

function bool onMatchClick ( GUIComponent Sender )

onMatchDblClick Source code

function bool onMatchDblClick ( GUIComponent Sender )
Double click -> play match

onPlayClick Source code

function bool onPlayClick ( )
Play the selected match, first check if we need to assign team mates

selectNextMatch Source code

function selectNextMatch ( )
Select next match should be overwritten in subclasses

showMatchDetails Source code

function showMatchDetails ( UT2K4MatchInfo mi )
Show the match details

ShowPanel Source code

function ShowPanel ( bool bShow )

StartMatch Source code

function StartMatch ( )
Start the selected match

UpdateBalance Source code

function UpdateBalance ( )
update the balance label

updateButton Source code

function updateButton ( UT2K4LadderButton btn, int ladderId, int matchId )
Update a single button. buttun style is not updated, this takes quite some time, call SetState when the button is shown


Defaultproperties

defaultproperties
{
     Begin Object Class=AltSectionBackground Name=SPPsbgMatch
         Caption="Selected match"
         WinTop=0.074329
         WinLeft=0.515000
         WinWidth=0.470000
         WinHeight=0.376633
         bBoundToParent=True
         OnPreDraw=SPPsbgMatch.InternalPreDraw
     End Object
     sbgMatch=AltSectionBackground'GUI2K4.UT2K4SPTab_LadderBase.SPPsbgMatch'

     Begin Object Class=AltSectionBackground Name=SPPsbgDetail
         Caption="Details"
         WinTop=0.473463
         WinLeft=0.515000
         WinWidth=0.470000
         WinHeight=0.450000
         bBoundToParent=True
         OnPreDraw=SPPsbgDetail.InternalPreDraw
     End Object
     sbgDetail=AltSectionBackground'GUI2K4.UT2K4SPTab_LadderBase.SPPsbgDetail'

     Begin Object Class=GUIImage Name=SPLimgMatchShot
         Image=Texture'UCGeneric.SolidColours.Black'
         ImageStyle=ISTY_Scaled
         ImageRenderStyle=MSTY_Normal
         WinTop=0.128434
         WinLeft=0.529005
         WinWidth=0.443266
         WinHeight=0.286939
         RenderWeight=0.200000
         bBoundToParent=True
     End Object
     imgMatchShot=GUIImage'GUI2K4.UT2K4SPTab_LadderBase.SPLimgMatchShot'

     Begin Object Class=GUIScrollTextBox Name=SPPsbDetails
         CharDelay=0.002500
         EOLDelay=0.500000
         OnCreateComponent=SPPsbDetails.InternalOnCreateComponent
         WinTop=0.532179
         WinLeft=0.531378
         WinWidth=0.439796
         WinHeight=0.333750
         RenderWeight=0.200000
         TabOrder=1
         bBoundToParent=True
     End Object
     sbDetails=GUIScrollTextBox'GUI2K4.UT2K4SPTab_LadderBase.SPPsbDetails'

     Begin Object Class=GUILabel Name=SPLlblMatchPrice
         TextAlign=TXTA_Center
         TextColor=(B=103,G=185,R=207)
         ShadowOffsetX=1.000000
         ShadowOffsetY=1.000000
         WinTop=0.374077
         WinLeft=0.524999
         WinWidth=0.450000
         WinHeight=0.041250
         RenderWeight=0.250000
         bBoundToParent=True
     End Object
     lblMatchPrice=GUILabel'GUI2K4.UT2K4SPTab_LadderBase.SPLlblMatchPrice'

     Begin Object Class=GUILabel Name=SPLlblMatchEntryFee
         TextAlign=TXTA_Center
         TextColor=(B=103,G=207,R=185)
         ShadowOffsetX=1.000000
         ShadowOffsetY=1.000000
         WinTop=0.340417
         WinLeft=0.524999
         WinWidth=0.450000
         WinHeight=0.041250
         RenderWeight=0.250000
         bBoundToParent=True
     End Object
     lblMatchEntryFee=GUILabel'GUI2K4.UT2K4SPTab_LadderBase.SPLlblMatchEntryFee'

     Begin Object Class=GUILabel Name=SPLlblBalance
         TextAlign=TXTA_Right
         ShadowColor=(A=64)
         ShadowOffsetX=1.500000
         ShadowOffsetY=1.500000
         StyleName="TextLabel"
         WinTop=0.005000
         WinLeft=0.546249
         WinWidth=0.450000
         WinHeight=0.041250
         RenderWeight=0.250000
         bBoundToParent=True
     End Object
     lblBalance=GUILabel'GUI2K4.UT2K4SPTab_LadderBase.SPLlblBalance'

     Begin Object Class=GUILabel Name=SPLlblNoMoney
         Caption="You do not have enough money to enter this match."
         TextAlign=TXTA_Center
         TextColor=(B=96,G=96,R=255)
         bMultiLine=True
         ShadowOffsetX=1.000000
         ShadowOffsetY=1.000000
         WinTop=0.128946
         WinLeft=0.530101
         WinWidth=0.442347
         WinHeight=0.208418
         RenderWeight=0.250000
         bBoundToParent=True
         bVisible=False
     End Object
     lblNoMoney=GUILabel'GUI2K4.UT2K4SPTab_LadderBase.SPLlblNoMoney'

     Begin Object Class=GUIButton Name=SPLbtnChallengeMap
         Caption="CHANGE ARENA"
         Hint="Select an alternative arena for this match"
         WinTop=0.868232
         WinLeft=0.565433
         WinWidth=0.371556
         WinHeight=0.047628
         RenderWeight=0.300000
         TabOrder=2
         bBoundToParent=True
         bVisible=False
         OnClick=UT2K4SPTab_LadderBase.OnMapChallenge
         OnKeyEvent=SPLbtnChallengeMap.InternalOnKeyEvent
     End Object
     btnChallengeMap=GUIButton'GUI2K4.UT2K4SPTab_LadderBase.SPLbtnChallengeMap'

     clEntryMatch=(B=103,G=207,R=185,A=255)
     clEntryFail=(B=96,G=96,R=255,A=255)
     PrizeMoney="Prize money:"
     EntryFee="Entry fee:"
     NotEnoughPlayers="You do not have enough healthy team mates for this match.|%teammates% healthy team mates are required, you only have %healthy%."
     BalanceLabel="Balance:"
     TeamRoleWindow="GUI2K4.UT2K4SP_TeamRoles"
     MapChallengeWindow="GUI2K4.UT2K4SP_MapChallenge"
     AnimTime=1.000000
     PropagateVisibility=False
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Wed 7/2/2007 19:16:23.281 - Created with UnCodeX