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
		WinWidth=0.470000
		WinHeight=0.376633
		WinLeft=0.515000
		WinTop=0.074329
		Caption="Selected match"
		bBoundToParent=true
    End Object
    sbgMatch=SPPsbgMatch


	Begin Object class=GUIImage Name=SPLimgMatchShot
		WinWidth=0.443266
		WinHeight=0.286939
		WinLeft=0.529005
		WinTop=0.128434
		Image=material'UCGeneric.SolidColours.Black'
		ImageRenderStyle=MSTY_Normal
		ImageStyle=ISTY_Scaled
		RenderWeight=0.2
		bBoundToParent=true
	End Object
	imgMatchShot=SPLimgMatchShot


	Begin Object Class=GUILabel Name=SPLlblMatchPrice
		WinWidth=0.450000
		WinHeight=0.041250
		WinLeft=0.524999
		WinTop=0.374077
		TextAlign=TXTA_Center
		RenderWeight=0.25
		
		TextColor=(R=207,G=185,B=103,A=255)
		ShadowOffsetX=1
		ShadowOffsetY=1
		bBoundToParent=true
	End Object
	lblMatchPrice=SPLlblMatchPrice


	Begin Object Class=GUILabel Name=SPLlblMatchEntryFee
		WinWidth=0.450000
		WinHeight=0.041250
		WinLeft=0.524999
		WinTop=0.340417
		TextAlign=TXTA_Center
		RenderWeight=0.25
		
		TextColor=(R=185,G=207,B=103,A=255)
		ShadowOffsetX=1
		ShadowOffsetY=1
		bBoundToParent=true
	End Object
	lblMatchEntryFee=SPLlblMatchEntryFee


	Begin Object Class=GUILabel Name=SPLlblNoMoney
		WinWidth=0.442347
		WinHeight=0.208418
		WinLeft=0.530101
		WinTop=0.128946
		TextAlign=TXTA_Center
		RenderWeight=0.25
		TextColor=(R=255,G=96,B=96,A=255)
		ShadowOffsetX=1
		ShadowOffsetY=1
		bBoundToParent=true
		Caption="You do not have enough money to enter this match."
		bMultiLine=true
		bVisible=false
	End Object
	lblNoMoney=SPLlblNoMoney


	Begin Object class=AltSectionBackground Name=SPPsbgDetail
		WinWidth=0.470000
		WinHeight=0.450000
		WinLeft=0.515000
		WinTop=0.473463
		Caption="Details"
		bBoundToParent=true
    End Object
    sbgDetail=SPPsbgDetail


	Begin Object Class=GUIScrollTextBox Name=SPPsbDetails
		WinWidth=0.439796
		WinHeight=0.333750
		WinLeft=0.531378
		WinTop=0.532179
		CharDelay=0.0025
		EOLDelay=0.5
		RenderWeight=0.2
		TabOrder=1
		StyleName="NoBackground"
		bBoundToParent=true
	End Object
	sbDetails=SPPsbDetails


	Begin Object Class=GUILabel Name=SPLlblBalance
		WinWidth=0.450000
		WinHeight=0.041250
		WinLeft=0.546249
		WinTop=0.005000
		Caption=""
		StyleName="TextLabel"
		
		TextAlign=TXTA_Right
		RenderWeight=0.25
		ShadowOffsetX=1.5
		ShadowOffsetY=1.5
		ShadowColor=(R=0,G=0,B=0,A=64)
		bBoundToParent=true
	End Object
	lblBalance=SPLlblBalance


	Begin Object Class=GUIButton Name=SPLbtnChallengeMap
		WinWidth=0.371556
		WinHeight=0.047628
		WinLeft=0.565433
		WinTop=0.868232
		Caption="CHANGE ARENA"
		Hint="Select an alternative arena for this match"
		TabOrder=2
		RenderWeight=0.3
		bVisible=false
		OnClick=OnMapChallenge
		bBoundToParent=true
	End Object
	btnChallengeMap=SPLbtnChallengeMap


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

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Do 14.8.2014 09:58:27.407 - Created with UnCodeX