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=GUIButton Name=SPMbtnOk
		Caption="ACCEPT"
		WinWidth=0.222222
		WinHeight=0.044444
		WinLeft=0.710071
		WinTop=0.887731
		OnClick=onOkClick
		RenderWeight=0.2
		FontScale=FNS_Small
		TabOrder=1
		MenuState=MSAT_Disabled
	End Object
	btnOk=SPMbtnOk


	Begin Object Class=GUIButton Name=SPCbtnCancel
		Caption="REFUSE"
		WinWidth=0.222222
		WinHeight=0.044444
		WinLeft=0.050348
		WinTop=0.887731
		OnClick=onCancelClick
		RenderWeight=0.2
		FontScale=FNS_Small
		TabOrder=2
	End Object
	btnCancel=SPCbtnCancel


	Begin Object Class=GUILabel Name=SPClblTitle
		Caption="Challenge"
		WinWidth=0.862501
		WinHeight=0.077500
		WinLeft=0.067813
		WinTop=0.017847
		RenderWeight=0.2
		StyleName="TextLabel"
		FontScale=FNS_Large
		TextALign=TXTA_Center
	End Object
	lblTitle=SPClblTitle


	Begin Object class=GUIImage name=SPCimgMapBg1
		WinWidth=0.444444
		WinHeight=0.333333
		WinLeft=0.020833
		WinTop=0.186308
		RenderWeight=0.1
		Image=Material'2K4Menus.Controls.sectionback'
		ImageStyle=ISTY_Scaled
	End Object
	imgMapBg1=SPCimgMapBg1


	Begin Object class=GUIImage name=SPCimgMapBg2
		WinWidth=0.444444
		WinHeight=0.333333
		WinLeft=0.534722
		WinTop=0.186308
		RenderWeight=0.1
		Image=Material'2K4Menus.Controls.sectionback'
		ImageStyle=ISTY_Scaled
	End Object
	imgMapBg2=SPCimgMapBg2


	Begin Object class=GUIImage name=SPCimgMap1
		WinWidth=0.441667
		WinHeight=0.312500
		WinLeft=0.022222
		WinTop=0.197531
		RenderWeight=0.15
		Image=Material'2K4Menus.Controls.sectionback'
		ImageStyle=ISTY_Scaled
	End Object
	imgMap1=SPCimgMap1


	Begin Object class=GUIImage name=SPCimgMap2
		WinWidth=0.441667
		WinHeight=0.312500
		WinLeft=0.536111
		WinTop=0.197531
		RenderWeight=0.15
		Image=Material'2K4Menus.Controls.sectionback'
		ImageStyle=ISTY_Scaled
	End Object
	imgMap2=SPCimgMap2


	Begin Object Class=GUILabel Name=SPClblGameDescription
		Caption=""
		WinWidth=0.862501
		WinHeight=0.077500
		WinLeft=0.067813
		WinTop=0.101180
		RenderWeight=0.2
		StyleName="TextLabel"
		FontScale=FNS_Large
		TextALign=TXTA_Center
	End Object
	lblGameDescription=SPClblGameDescription


	Begin Object class=GUIComboBox Name=SPCcbGameType
		Hint="Select the game"
		WinWidth=0.958334
		WinHeight=0.079167
		WinLeft=0.019792
		WinTop=0.097830
		RenderWeight=0.21
		FontScale=FNS_Large
		bReadOnly=true
		TabOrder=0
		OnChange=OnGameSelect
	End Object
	cbGameType=SPCcbGameType


	Begin Object class=GUIGFXButton Name=SPCcbMap1
		Caption=""
		WinWidth=0.444444
		WinHeight=0.062500
		WinLeft=0.020833
		WinTop=0.519641
		bCheckBox=true
		OnChange=OnMapSelect
	End Object
	cbMap1=SPCcbMap1


	Begin Object class=GUIGFXButton Name=SPCcbMap2
		Caption=""
		WinWidth=0.444444
		WinHeight=0.062500
		WinLeft=0.534722
		WinTop=0.519641
		bCheckBox=true
		OnChange=OnMapSelect
	End Object
	cbMap2=SPCcbMap2


	Begin Object class=moComboBox Name=SPCcbEnemyTeam
		Caption="Challenge team:"
		Hint="Challenge this team for a match"
		bAutoSizeCaption=true
		WinWidth=0.952779
		WinHeight=0.059722
		WinLeft=0.024306
		WinTop=0.594780
		bReadOnly=true
		TabOrder=3
	End Object
	cbEnemyTeam=SPCcbEnemyTeam


	Begin Object Class=GUIScrollTextBox Name=SPCsbDetails
		WinWidth=0.958334
		WinHeight=0.211111
		WinLeft=0.019792
		WinTop=0.667977
		RenderWeight=0.2
		TabOrder=1
		bNoTeletype=true
		StyleName="NoBackground"
	End Object
	sbDetails=SPCsbDetails


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


	WinWidth=0.9
	WinHeight=0.9
	WinLeft=0.05
	WinTop=0.05
	OnClose=OnWindowClose
	OnCanClose=OnCanWindowClose


	PlayTitle="Play"
	TeamRoleWindow="GUI2K4.UT2K4SP_TeamRoles"
	YouveBeenChallenged="You've been challenged!"
	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."
	DefaultUrl="?TeamScreen=true"
	BasePrizeMoney=400
	VarPrizeMoney=100


	ChallengeGameNames[0]="Team DeathMatch"
	ChallengeGames[0]=(GameType="xGame.xTeamGame",ExtraUrl="",MaxBots=5,MapAcronym="DM",MapPrefix="",BaseGoalScore=20,VarGoalScore=5)
	ChallengeGameNames[1]="1vs1 DeathMatch"
	ChallengeGames[1]=(GameType="xGame.xDeathmatch",ExtraUrl="",MaxBots=1,MapAcronym="DM",MapPrefix="DM-1on1",BaseGoalScore=10,VarGoalScore=5)
	ChallengeGameNames[2]="Mutant"
	ChallengeGames[2]=(GameType="BonusPack.xMutantGame",ExtraUrl="",MaxBots=4,MapAcronym="DM",MapPrefix="",BaseGoalScore=15,VarGoalScore=5)
	ChallengeGameNames[3]="Instagib Team DeathMatch"
	ChallengeGames[3]=(GameType="xGame.xTeamGame",ExtraUrl="?mutator=XGame.MutInstaGib",MaxBots=7,MapAcronym="DM",MapPrefix="",BaseGoalScore=30,VarGoalScore=10)
}

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