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

GUI2K4.UT2K4SP_Challenge

Extends
LargeWindow

Core.Object
|   
+-- XInterface.GUI
   |   
   +-- XInterface.GUIComponent
      |   
      +-- XInterface.GUIMultiComponent
         |   
         +-- XInterface.GUIPage
            |   
            +-- XInterface.UT2K4GUIPage
               |   
               +-- GUI2K4.PopupPageBase
                  |   
                  +-- GUI2K4.FloatingWindow
                     |   
                     +-- GUI2K4.LargeWindow
                        |   
                        +-- GUI2K4.UT2K4SP_Challenge

Variables Summary
intBasePrizeMoney
GUIButtonbtnCancel
GUIButtonbtnOk
intCancelPenalty
moComboBoxcbEnemyTeam
GUIComboBoxcbGameType
GUIGFXButtoncbMap1
GUIGFXButtoncbMap2
stringChallengedBy
stringChallengedDescription
stringChallengeDescription
array<string>ChallengeGameNames
array<ChallengeGameType>ChallengeGames
stringDefaultUrl
UT2K4GameProfileGP
GUIImageimgMap1
GUIImageimgMap2
GUIImageimgMapBg1
GUIImageimgMapBg2
GUILabellblGameDescription
GUILabellblNoPreview1
GUILabellblNoPreview2
GUILabellblTitle
array<CacheManager.MapRecord>MapData
CacheManager.MapRecordMapOptions[2]
stringNotEnoughCash
stringPenaltyWarning
stringPlayTitle
UT2K4SP_TeamRolesRoleWindow
GUIScrollTextBoxsbDetails
stringTeamRoleWindow
intVarPrizeMoney
stringYouveBeenChallenged
Inherited Variables from GUI2K4.FloatingWindow
BLSizing, bMoveAllowed, bMoving, bResizeHeightAllowed, bResizeWidthAllowed, bResizing, BRSizing, BtSizing, b_ExitButton, DefaultHeight, DefaultLeft, DefaultTop, DefaultWidth, HeaderMouseCursorIndex, LSizing, MaxPageHeight, MaxPageWidth, MinPageHeight, MinPageWidth, RSizing, TLSizing, TRSizing, TSizing, t_WindowTitle, WindowName

Structures Summary
ChallengeGameType
GameType, ExtraUrl, MaxBots, MapAcronym, MapPrefix, BaseGoalScore, VarGoalScore

Functions Summary
function GetGame (int index, optional bool noRecreateEnemies)
event HandleParameters (string Param1, string Param2)
function InitComponent (GUIController MyController, GUIComponent MyOwner)
functionbool onCancelClick (GUIComponent Sender)
functionbool OnCanWindowClose (optional Bool bCancelled)
function OnConfirmCancel (byte bButton)
function OnGameSelect (GUIComponent Sender)
function OnMapSelect (GUIComponent Sender)
functionbool onOkClick (GUIComponent Sender)
function OnWindowClose (optional Bool bCancelled)
function SetupNoPreview (GUILabel lbl, GUIImage img)
event SetVisibility (bool bIsVisible)
function StartMatch ()
Inherited Functions from GUI2K4.FloatingWindow
AddSystemMenu, AlignFrame, CheckBounds, FloatingHover, FloatingMousePressed, FloatingMouseRelease, FloatingPreDraw, FloatingRendered, HoveringBottomBorder, HoveringBottomLeft, HoveringLeftBorder, HoveringRightBorder, HoveringTopBorder, HoveringTopLeft, InitComponent, InternalOnCreateComponent, ResizeAllowed, ResizedBoth, ResizedHeight, ResizedWidth, ResolutionChanged, SaveCurrentPosition, SetDefaultPosition, SetFocus, SetMouseCursorIndex, SetPanelPosition, SystemMenuPreDraw, XButtonClicked


Variables Detail

BasePrizeMoney Source code

var int BasePrizeMoney;
PrizeMoney = enemy team size * this number

btnCancel Source code

var automated GUIButton btnCancel;

btnOk Source code

var automated GUIButton btnOk;

CancelPenalty Source code

var int CancelPenalty;
the penalty we pay when we cancel the challenge

cbEnemyTeam Source code

var automated moComboBox cbEnemyTeam;

cbGameType Source code

var automated GUIComboBox cbGameType;

cbMap1 Source code

var automated GUIGFXButton cbMap1;

cbMap2 Source code

var automated GUIGFXButton cbMap2;

ChallengedBy Source code

var string ChallengedBy;
we have been challenged by this team

ChallengedDescription Source code

var localized string ChallengedDescription;

ChallengeDescription Source code

var localized string ChallengeDescription;

ChallengeGameNames Source code

var localized array<string> ChallengeGameNames;
localized names for the above types

ChallengeGames Source code

var array<ChallengeGameType> ChallengeGames;
Possible challenge matches

DefaultUrl Source code

var string DefaultUrl;
always append this to the url

GP Source code

var UT2K4GameProfile GP;

imgMap1 Source code

var automated GUIImage imgMap1;

imgMap2 Source code

var automated GUIImage imgMap2;

imgMapBg1 Source code

var automated GUIImage imgMapBg1;

imgMapBg2 Source code

var automated GUIImage imgMapBg2;

lblGameDescription Source code

var automated GUILabel lblGameDescription;

lblNoPreview1 Source code

var automated GUILabel lblNoPreview1;

lblNoPreview2 Source code

var automated GUILabel lblNoPreview2;

lblTitle Source code

var automated GUILabel lblTitle;

MapData Source code

var array<CacheManager.MapRecord> MapData;

MapOptions[2] Source code

var CacheManager.MapRecord MapOptions[2];
The two maps to choose from

NotEnoughCash Source code

var localized string NotEnoughCash;

PenaltyWarning Source code

var localized string PenaltyWarning;

PlayTitle Source code

var localized string PlayTitle;

RoleWindow Source code

var UT2K4SP_TeamRoles RoleWindow;

sbDetails Source code

var automated GUIScrollTextBox sbDetails;

TeamRoleWindow Source code

var string TeamRoleWindow;
team role selection window

VarPrizeMoney Source code

var int VarPrizeMoney;
This is added to the base price money after it has been multiplied with a random float

YouveBeenChallenged Source code

var localized string YouveBeenChallenged;


Structures Detail

ChallengeGameType Source code

struct ChallengeGameType
{
var int BaseGoalScore;
var string ExtraUrl;
var string GameType;
var string MapAcronym;
var string MapPrefix;
var int MaxBots;
var int VarGoalScore;
};



Functions Detail

GetGame Source code

function GetGame ( int index, optional bool noRecreateEnemies )

HandleParameters Source code

event HandleParameters ( string Param1, string Param2 )

InitComponent Source code

function InitComponent ( GUIController MyController, GUIComponent MyOwner )

onCancelClick Source code

function bool onCancelClick ( GUIComponent Sender )
Cancel button pressed

OnCanWindowClose Source code

function bool OnCanWindowClose ( optional Bool bCancelled )

OnConfirmCancel Source code

function OnConfirmCancel ( byte bButton )
Player accepts to pay the penalty

OnGameSelect Source code

function OnGameSelect ( GUIComponent Sender )

OnMapSelect Source code

function OnMapSelect ( GUIComponent Sender )

onOkClick Source code

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

OnWindowClose Source code

function OnWindowClose ( optional Bool bCancelled )

SetupNoPreview Source code

protected function SetupNoPreview ( GUILabel lbl, GUIImage img )

SetVisibility Source code

event SetVisibility ( bool bIsVisible )

StartMatch Source code

function StartMatch ( )
Start the selected match


Defaultproperties

defaultproperties
{
     Begin Object Class=GUIImage Name=SPCimgMap1
         Image=Texture'2K4Menus.Controls.sectionback'
         ImageStyle=ISTY_Scaled
         WinTop=0.197531
         WinLeft=0.022222
         WinWidth=0.441667
         WinHeight=0.312500
         RenderWeight=0.150000
     End Object
     imgMap1=GUIImage'GUI2K4.UT2K4SP_Challenge.SPCimgMap1'

     Begin Object Class=GUIImage Name=SPCimgMap2
         Image=Texture'2K4Menus.Controls.sectionback'
         ImageStyle=ISTY_Scaled
         WinTop=0.197531
         WinLeft=0.536111
         WinWidth=0.441667
         WinHeight=0.312500
         RenderWeight=0.150000
     End Object
     imgMap2=GUIImage'GUI2K4.UT2K4SP_Challenge.SPCimgMap2'

     Begin Object Class=GUIImage Name=SPCimgMapBg1
         Image=Texture'2K4Menus.Controls.sectionback'
         ImageStyle=ISTY_Scaled
         WinTop=0.186308
         WinLeft=0.020833
         WinWidth=0.444444
         WinHeight=0.333333
     End Object
     imgMapBg1=GUIImage'GUI2K4.UT2K4SP_Challenge.SPCimgMapBg1'

     Begin Object Class=GUIImage Name=SPCimgMapBg2
         Image=Texture'2K4Menus.Controls.sectionback'
         ImageStyle=ISTY_Scaled
         WinTop=0.186308
         WinLeft=0.534722
         WinWidth=0.444444
         WinHeight=0.333333
     End Object
     imgMapBg2=GUIImage'GUI2K4.UT2K4SP_Challenge.SPCimgMapBg2'

     Begin Object Class=GUIButton Name=SPMbtnOk
         Caption="ACCEPT"
         MenuState=MSAT_Disabled
         FontScale=FNS_Small
         WinTop=0.887731
         WinLeft=0.710071
         WinWidth=0.222222
         WinHeight=0.044444
         RenderWeight=0.200000
         TabOrder=1
         OnClick=UT2K4SP_Challenge.onOkClick
         OnKeyEvent=SPMbtnOk.InternalOnKeyEvent
     End Object
     btnOK=GUIButton'GUI2K4.UT2K4SP_Challenge.SPMbtnOk'

     Begin Object Class=GUIButton Name=SPCbtnCancel
         Caption="REFUSE"
         FontScale=FNS_Small
         WinTop=0.887731
         WinLeft=0.050348
         WinWidth=0.222222
         WinHeight=0.044444
         RenderWeight=0.200000
         TabOrder=2
         OnClick=UT2K4SP_Challenge.onCancelClick
         OnKeyEvent=SPCbtnCancel.InternalOnKeyEvent
     End Object
     btnCancel=GUIButton'GUI2K4.UT2K4SP_Challenge.SPCbtnCancel'

     Begin Object Class=GUILabel Name=SPClblTitle
         Caption="Challenge"
         TextAlign=TXTA_Center
         FontScale=FNS_Large
         StyleName="TextLabel"
         WinTop=0.017847
         WinLeft=0.067813
         WinWidth=0.862501
         WinHeight=0.077500
         RenderWeight=0.200000
     End Object
     lblTitle=GUILabel'GUI2K4.UT2K4SP_Challenge.SPClblTitle'

     Begin Object Class=GUILabel Name=SPClblGameDescription
         TextAlign=TXTA_Center
         FontScale=FNS_Large
         StyleName="TextLabel"
         WinTop=0.101180
         WinLeft=0.067813
         WinWidth=0.862501
         WinHeight=0.077500
         RenderWeight=0.200000
     End Object
     lblGameDescription=GUILabel'GUI2K4.UT2K4SP_Challenge.SPClblGameDescription'

     Begin Object Class=GUILabel Name=NoPreview
         Caption="No Preview Available"
         TextAlign=TXTA_Center
         TextColor=(B=0,G=255,R=247)
         TextFont="UT2HeaderFont"
         bTransparent=False
         bMultiLine=True
         VertAlign=TXTA_Center
         WinTop=0.197531
         WinLeft=0.022222
         WinWidth=0.441667
         WinHeight=0.312500
     End Object
     lblNoPreview1=GUILabel'GUI2K4.UT2K4SP_Challenge.NoPreview'

     lblNoPreview2=GUILabel'GUI2K4.UT2K4SP_Challenge.NoPreview'

     Begin Object Class=GUIComboBox Name=SPCcbGameType
         bReadOnly=True
         FontScale=FNS_Large
         Hint="Select the game"
         WinTop=0.097830
         WinLeft=0.019792
         WinWidth=0.958334
         WinHeight=0.079167
         RenderWeight=0.210000
         TabOrder=0
         OnChange=UT2K4SP_Challenge.OnGameSelect
         OnKeyEvent=SPCcbGameType.InternalOnKeyEvent
     End Object
     cbGameType=GUIComboBox'GUI2K4.UT2K4SP_Challenge.SPCcbGameType'

     Begin Object Class=GUIGFXButton Name=SPCcbMap1
         bCheckBox=True
         WinTop=0.519641
         WinLeft=0.020833
         WinWidth=0.444444
         WinHeight=0.062500
         OnChange=UT2K4SP_Challenge.OnMapSelect
         OnKeyEvent=SPCcbMap1.InternalOnKeyEvent
     End Object
     cbMap1=GUIGFXButton'GUI2K4.UT2K4SP_Challenge.SPCcbMap1'

     Begin Object Class=GUIGFXButton Name=SPCcbMap2
         bCheckBox=True
         WinTop=0.519641
         WinLeft=0.534722
         WinWidth=0.444444
         WinHeight=0.062500
         OnChange=UT2K4SP_Challenge.OnMapSelect
         OnKeyEvent=SPCcbMap2.InternalOnKeyEvent
     End Object
     cbMap2=GUIGFXButton'GUI2K4.UT2K4SP_Challenge.SPCcbMap2'

     Begin Object Class=moComboBox Name=SPCcbEnemyTeam
         bReadOnly=True
         Caption="Challenge team:"
         OnCreateComponent=SPCcbEnemyTeam.InternalOnCreateComponent
         Hint="Challenge this team for a match"
         WinTop=0.594780
         WinLeft=0.024306
         WinWidth=0.952779
         WinHeight=0.059722
         TabOrder=3
     End Object
     cbEnemyTeam=moComboBox'GUI2K4.UT2K4SP_Challenge.SPCcbEnemyTeam'

     Begin Object Class=GUIScrollTextBox Name=SPCsbDetails
         bNoTeletype=True
         OnCreateComponent=SPCsbDetails.InternalOnCreateComponent
         WinTop=0.667977
         WinLeft=0.019792
         WinWidth=0.958334
         WinHeight=0.211111
         RenderWeight=0.200000
         TabOrder=1
     End Object
     sbDetails=GUIScrollTextBox'GUI2K4.UT2K4SP_Challenge.SPCsbDetails'

     TeamRoleWindow="GUI2K4.UT2K4SP_TeamRoles"
     BasePrizeMoney=400
     VarPrizeMoney=100
     ChallengeGames(0)=(GameType="xGame.xTeamGame",maxbots=5,MapAcronym="DM",BaseGoalScore=20,VarGoalScore=5)
     ChallengeGames(1)=(GameType="xGame.xDeathmatch",maxbots=1,MapAcronym="DM",MapPrefix="DM-1on1",BaseGoalScore=10,VarGoalScore=5)
     ChallengeGames(2)=(GameType="BonusPack.xMutantGame",maxbots=4,MapAcronym="DM",BaseGoalScore=15,VarGoalScore=5)
     ChallengeGames(3)=(GameType="xGame.xTeamGame",ExtraUrl="?mutator=XGame.MutInstaGib",maxbots=7,MapAcronym="DM",BaseGoalScore=30,VarGoalScore=10)
     ChallengeGameNames(0)="Team DeathMatch"
     ChallengeGameNames(1)="1vs1 DeathMatch"
     ChallengeGameNames(2)="Mutant"
     ChallengeGameNames(3)="Instagib Team DeathMatch"
     PenaltyWarning="When you refuse you will have to pay a penalty of %cancelpenalty%.||Are you sure you want to refuse?"
     ChallengeDescription="To enter this challenge you have to pay the entry fee of %entryfee%.|You can win %PrizeMoney% when you win this match.|Your current balance is %balance%."
     ChallengedDescription="You have been challenged by %enemyteam%.|You can win %PrizeMoney% when you defeat them.|When you don't accept this challenge you have to pay %cancelfee% to the opposing team.|Your current balance is %balance%."
     NotEnoughCash="You do not have enough money to challenge another team."
     YouveBeenChallenged="You've been challenged!"
     PlayTitle="Play"
     DefaultUrl="?TeamScreen=true"
     OnClose=UT2K4SP_Challenge.OnWindowClose
     OnCanClose=UT2K4SP_Challenge.OnCanWindowClose
     WinTop=0.050000
     WinLeft=0.050000
     WinWidth=0.900000
     WinHeight=0.900000
}

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