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

GUI2K4.UT2K4SP_CGManoEMano

Extends
LargeWindow

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

Variables Summary
boolbChallenged
GUIButtonbtnCancel
GUIButtonbtnOk
intCancelPenalty
moComboBoxcbEnemyTeam
GUIGFXButtoncbMap1
GUIGFXButtoncbMap2
stringChallengedBy
array<ChallengeSettingRecord>ChallengeSettings
array<string>ChalMaps
stringDefaultUrl
UT2K4GameProfileGP
GUIImageimgMap1
GUIImageimgMap2
GUIImageimgMapBg1
GUIImageimgMapBg2
GUILabellblBalance
GUILabellblMinMaxBet
GUILabellblNoPreview1
GUILabellblNoPreview2
GUILabellblTitle
CacheManager.MapRecordMapOptions[2]
intMinimalBet
stringmsgChallenge
stringmsgChallenged
stringmsgMinMaxBet
moFormatNumEditneBet
stringNotEnoughCash
stringPenaltyWarning
GUIScrollTextBoxsbDetails
stringSelectAMap
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
ChallengeSettingRecord
Acronym, GoalScore, GameType

Functions Summary
functionstring FormatMoney (int NewValue))
function GetRandomMaps ()))
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 OnMapSelect (GUIComponent Sender))
functionbool onOkClick (GUIComponent Sender))
function OnWindowClose (optional Bool bCancelled))
function setChallengeInfo (int selectedMap))
function SetupNoPreview (GUILabel lbl, GUIImage img ))
event SetVisibility (bool bIsVisible))
function UpdateDetails (GUIComponent Sender))
function UpdateTeamDetails (GUIComponent Sender))
functionbool XButtonClicked (GUIComponent Sender ))
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

bChallenged Source code

var bool bChallenged;
true if we have been challenged

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;

cbMap1 Source code

var automated GUIGFXButton cbMap1;

cbMap2 Source code

var automated GUIGFXButton cbMap2;

ChallengedBy Source code

var string ChallengedBy;
set to the preselect/challenged team

ChallengeSettings Source code

var array<ChallengeSettingRecord> ChallengeSettings;
per acronym settings

ChalMaps Source code

var array<string> ChalMaps;
available maps

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;

lblBalance Source code

var automated GUILabel lblBalance;

lblMinMaxBet Source code

var automated GUILabel lblMinMaxBet;

lblNoPreview1 Source code

var automated GUILabel lblNoPreview1;

lblNoPreview2 Source code

var automated GUILabel lblNoPreview2;

lblTitle Source code

var automated GUILabel lblTitle;

MapOptions[2] Source code

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

MinimalBet Source code

var int MinimalBet;
Minimal bet you may place

msgChallenge Source code

var localized string msgChallenge;

msgChallenged Source code

var localized string msgChallenged;

msgMinMaxBet Source code

var localized string msgMinMaxBet;

neBet Source code

var automated moFormatNumEdit neBet;

NotEnoughCash Source code

var localized string NotEnoughCash;

PenaltyWarning Source code

var localized string PenaltyWarning;

sbDetails Source code

var automated GUIScrollTextBox sbDetails;

SelectAMap Source code

var localized string SelectAMap;

YouveBeenChallenged Source code

var localized string YouveBeenChallenged;


Structures Detail

ChallengeSettingRecord Source code

struct ChallengeSettingRecord
{
var string Acronym;
var string GameType;
var int GoalScore;
};



Functions Detail

FormatMoney Source code

function string FormatMoney ( int NewValue) )

GetRandomMaps Source code

function GetRandomMaps ( ) )

HandleParameters Source code

event HandleParameters ( string Param1, string Param2) )
param1 = preselect enemy team, fully qualified classname. param2 = not empty -> lock team change controlls

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

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) )

setChallengeInfo Source code

function setChallengeInfo ( int selectedMap) )

SetupNoPreview Source code

protected function SetupNoPreview ( GUILabel lbl, GUIImage img ) )

SetVisibility Source code

event SetVisibility ( bool bIsVisible) )

UpdateDetails Source code

function UpdateDetails ( GUIComponent Sender) )

UpdateTeamDetails Source code

function UpdateTeamDetails ( GUIComponent Sender) )

XButtonClicked Source code

function bool XButtonClicked ( GUIComponent Sender ) )


Defaultproperties

defaultproperties
{
	Begin Object Class=GUIButton Name=SPMbtnOk
		Caption="ACCEPT"
		WinWidth=0.222222
		WinHeight=0.056944
		WinLeft=0.710071
		WinTop=0.904398
		OnClick=onOkClick
		RenderWeight=0.2
		FontScale=FNS_Small
		TabOrder=1
		MenuState=MSAT_Disabled
		bBoundToParent=true
	End Object
	btnOk=SPMbtnOk


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


	Begin Object Class=GUILabel Name=SPClblTitle
		Caption="Head to Head"
		WinWidth=0.862501
		WinHeight=0.077500
		WinLeft=0.067813
		WinTop=0.026180
		RenderWeight=0.2
		StyleName="TextLabel"
		FontScale=FNS_Large
		TextALign=TXTA_Center
		bBoundToParent=true
	End Object
	lblTitle=SPClblTitle


	Begin Object Class=GUILabel Name=SPClblMinMax
		Caption=""
		WinWidth=0.952778
		WinHeight=0.042778
		WinLeft=0.026146
		WinTop=0.619930
		RenderWeight=0.2
		StyleName="TextLabel"
		FontScale=FNS_Small
		TextALign=TXTA_Left
		bBoundToParent=true
	End Object
	lblMinMaxBet=SPClblMinMax


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


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


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


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


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


	Begin Object class=GUIGFXButton Name=SPCcbMap2
		Caption=""
		WinWidth=0.444444
		WinHeight=0.062500
		WinLeft=0.534722
		WinTop=0.452974
		bCheckBox=true
		OnChange=OnMapSelect
		bBoundToParent=true
	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.536447
		bReadOnly=true
		TabOrder=3
		OnChange=UpdateTeamDetails
		bBoundToParent=true
	End Object
	cbEnemyTeam=SPCcbEnemyTeam


	Begin Object class=moFormatNumEdit Name=SPCneBet
		Caption="Challenge bet:"
		Hint="The bet for this challenge"
		bAutoSizeCaption=true
		WinWidth=0.952779
		WinHeight=0.037500
		WinLeft=0.024306
		WinTop=0.590614
		TabOrder=4
		OnChange=UpdateDetails
		FormatValue=FormatMoney
		bBoundToParent=true
	End Object
	neBet=SPCneBet


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


	Begin Object Class=GUILabel Name=SPLlblBalance
		WinWidth=0.450000
		WinHeight=0.041250
		WinLeft=0.532360
		WinTop=0.046667
		Caption=""
		StyleName="TextLabel"
		TextAlign=TXTA_Right
		RenderWeight=0.25
		bBoundToParent=true
	End Object
	lblBalance=SPLlblBalance


    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
		bBoundToParent=true
    End Object
    lblNoPreview1=NoPreview
    lblNoPreview2=NoPreview


	DefaultLeft=0.05
	DefaultTop=0.1
	DefaultWidth=0.9
	DefaultHeight=0.8


	WinLeft=0.05
	WinTop=0.1
	WinWidth=0.9
	WinHeight=0.8


	OnClose=OnWindowClose
	OnCanClose=OnCanWindowClose


	MinimalBet=150
	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?"
	SelectAMap="Please select an area for the challenge."
	msgChallenge="You have selected to play a %gametype% match in %map%. You will play against %teamleader% of the %teamname%.|You will have to pay %entryfee% to participate in this challenge, if you win you will earn %prizemoney%"
	msgChallenged="You have been challenged by %teamname% for a Head to Head match. You will play against %teamleader%.|When you win you will earn %prizemoney%, but you have to pay up %entryfee% to join this challenge.|You will play a %gametype% game in %map%.|If you refuse the match you will have to pay %penalty%."
	NotEnoughCash="You do not have enough money to pay the minimal bet for this challenge."
	msgMinMaxBet="minimum: %min%, maximum: %max%"
	DefaultUrl="?TeamScreen=true"


	ChallengeSettings(0)=(Acronym="DM",goalscore=15,gametype="xGame.xTeamGame")
	ChallengeSettings(1)=(Acronym="CTF",goalscore=3,gametype="xGame.xCTFGame")


	ChalMaps(0)="DM-1on1-Albatross"
	ChalMaps(1)="DM-1on1-Crash"
	ChalMaps(2)="DM-1on1-Idoma"
	ChalMaps(3)="DM-1on1-Irondust"
	ChalMaps(4)="DM-1on1-Mixer"
	ChalMaps(5)="DM-1on1-Roughinery"
	ChalMaps(6)="DM-1on1-Serpentine"
	ChalMaps(7)="DM-1on1-Spirit"
	ChalMaps(8)="DM-1on1-Squader"
	ChalMaps(9)="DM-1on1-Trite"
}

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