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=GUIImage Name=SPCimgMap1
         Image=Texture'2K4Menus.Controls.sectionback'
         ImageStyle=ISTY_Scaled
         WinTop=0.122531
         WinLeft=0.022222
         WinWidth=0.441667
         WinHeight=0.312500
         RenderWeight=0.150000
         bBoundToParent=True
     End Object
     imgMap1=GUIImage'GUI2K4.UT2K4SP_CGManoEMano.SPCimgMap1'

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

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

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

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

     Begin Object Class=GUIButton Name=SPCbtnCancel
         Caption="REFUSE"
         FontScale=FNS_Small
         WinTop=0.904398
         WinLeft=0.050348
         WinWidth=0.222222
         WinHeight=0.056944
         RenderWeight=0.200000
         TabOrder=2
         bBoundToParent=True
         OnClick=UT2K4SP_CGManoEMano.onCancelClick
         OnKeyEvent=SPCbtnCancel.InternalOnKeyEvent
     End Object
     btnCancel=GUIButton'GUI2K4.UT2K4SP_CGManoEMano.SPCbtnCancel'

     Begin Object Class=GUILabel Name=SPClblTitle
         Caption="Head to Head"
         TextAlign=TXTA_Center
         FontScale=FNS_Large
         StyleName="TextLabel"
         WinTop=0.026180
         WinLeft=0.067813
         WinWidth=0.862501
         WinHeight=0.077500
         RenderWeight=0.200000
         bBoundToParent=True
     End Object
     lblTitle=GUILabel'GUI2K4.UT2K4SP_CGManoEMano.SPClblTitle'

     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
         bBoundToParent=True
     End Object
     lblNoPreview1=GUILabel'GUI2K4.UT2K4SP_CGManoEMano.NoPreview'

     lblNoPreview2=GUILabel'GUI2K4.UT2K4SP_CGManoEMano.NoPreview'

     Begin Object Class=GUILabel Name=SPClblMinMax
         FontScale=FNS_Small
         StyleName="TextLabel"
         WinTop=0.619930
         WinLeft=0.026146
         WinWidth=0.952778
         WinHeight=0.042778
         RenderWeight=0.200000
         bBoundToParent=True
     End Object
     lblMinMaxBet=GUILabel'GUI2K4.UT2K4SP_CGManoEMano.SPClblMinMax'

     Begin Object Class=GUILabel Name=SPLlblBalance
         TextAlign=TXTA_Right
         StyleName="TextLabel"
         WinTop=0.046667
         WinLeft=0.532360
         WinWidth=0.450000
         WinHeight=0.041250
         RenderWeight=0.250000
         bBoundToParent=True
     End Object
     lblBalance=GUILabel'GUI2K4.UT2K4SP_CGManoEMano.SPLlblBalance'

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

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

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

     Begin Object Class=moFormatNumEdit Name=SPCneBet
         FormatValue=UT2K4SP_CGManoEMano.FormatMoney
         Caption="Challenge bet:"
         OnCreateComponent=SPCneBet.InternalOnCreateComponent
         Hint="The bet for this challenge"
         WinTop=0.590614
         WinLeft=0.024306
         WinWidth=0.952779
         WinHeight=0.037500
         TabOrder=4
         bBoundToParent=True
         OnChange=UT2K4SP_CGManoEMano.UpdateDetails
     End Object
     neBet=moFormatNumEdit'GUI2K4.UT2K4SP_CGManoEMano.SPCneBet'

     Begin Object Class=GUIScrollTextBox Name=SPCsbDetails
         bNoTeletype=True
         OnCreateComponent=SPCsbDetails.InternalOnCreateComponent
         WinTop=0.674643
         WinLeft=0.019792
         WinWidth=0.958334
         WinHeight=0.217361
         RenderWeight=0.200000
         TabOrder=1
         bBoundToParent=True
     End Object
     sbDetails=GUIScrollTextBox'GUI2K4.UT2K4SP_CGManoEMano.SPCsbDetails'

     MinimalBet=150
     PenaltyWarning="When you refuse you will have to pay a penalty of %cancelpenalty%.||Are you sure you want to refuse?"
     YouveBeenChallenged="You've been challenged!"
     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"
     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"
     ChallengeSettings(0)=(Acronym="DM",GoalScore=15,GameType="xGame.xTeamGame")
     ChallengeSettings(1)=(Acronym="CTF",GoalScore=3,GameType="xGame.xCTFGame")
     DefaultLeft=0.050000
     DefaultTop=0.100000
     DefaultWidth=0.900000
     DefaultHeight=0.800000
     OnClose=UT2K4SP_CGManoEMano.OnWindowClose
     OnCanClose=UT2K4SP_CGManoEMano.OnCanWindowClose
     WinTop=0.100000
     WinLeft=0.050000
     WinWidth=0.900000
     WinHeight=0.800000
}

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