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

GUI2K4.UT2K4SP_CGBloodRites

Extends
LargeWindow

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

Variables Summary
boolbChallenged
GUIButtonbtnCancel
GUIButtonbtnNextChar
GUIButtonbtnOk
GUIButtonbtnPrevChar
intCancelPenalty
stringCantAffordCancel
moComboBoxcbEnemyTeam
moCheckBoxcbInstaGib
GUIGFXButtoncbMap1
GUIGFXButtoncbMap2
stringChalGameType
floatChalledFeeMultiply
stringChallengedBy
GUICharacterListTeamclSelChar
stringDefaultUrl
UT2K4GameProfileGP
GUIImageimgMap1
GUIImageimgMap2
GUIImageimgMapBg1
GUIImageimgMapBg2
intInstaGoalScore
GUILabellblBalance
GUILabellblNoPreview1
GUILabellblNoPreview2
GUILabellblSelChar
GUILabellblSelCharName
GUILabellblTitle
array<CacheManager.MapRecord>MapData
CacheManager.MapRecordMapOptions[2]
stringMapPreFix
intminimalEntryFee
stringmsgChallenge
stringmsgChallenged
stringmsgInstaGib
stringMutInstaGib
intNormalGoalScore
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

Functions Summary
functionint CheapestBot (array<string> list)
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)
functionbool onSelectChar (GUIComponent Sender)
function OnWindowClose (optional Bool bCancelled)
function setChallengeInfo (int selectedMap)
function SetupNoPreview (GUILabel lbl, GUIImage img)
event SetVisibility (bool bIsVisible)
function StartMatch ()
function UpdateDetails (GUIComponent Sender)
function UpdateEnemyTeam (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;

btnNextChar Source code

var automated GUIButton btnNextChar;

btnOk Source code

var automated GUIButton btnOk;

btnPrevChar Source code

var automated GUIButton btnPrevChar;

CancelPenalty Source code

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

CantAffordCancel Source code

var localized string CantAffordCancel;

cbEnemyTeam Source code

var automated moComboBox cbEnemyTeam;

cbInstaGib Source code

var automated moCheckBox cbInstaGib;

cbMap1 Source code

var automated GUIGFXButton cbMap1;

cbMap2 Source code

var automated GUIGFXButton cbMap2;

ChalGameType Source code

var string ChalGameType;
default gametype = xGame.xTeamGame

ChalledFeeMultiply Source code

var float ChalledFeeMultiply;
multiplicator for the cancel fee when challenged

ChallengedBy Source code

var string ChallengedBy;
set to the preselect/challenged team

clSelChar Source code

var automated GUICharacterListTeam clSelChar;

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;

InstaGoalScore Source code

var int InstaGoalScore;
diffirent goal scores for normal and insta game

lblBalance Source code

var automated GUILabel lblBalance;

lblNoPreview1 Source code

var automated GUILabel lblNoPreview1;

lblNoPreview2 Source code

var automated GUILabel lblNoPreview2;

lblSelChar Source code

var automated GUILabel lblSelChar;

lblSelCharName Source code

var automated GUILabel lblSelCharName;

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

MapPreFix Source code

var string MapPreFix;
prefix of the maps to use

minimalEntryFee Source code

var int minimalEntryFee;

msgChallenge Source code

var localized string msgChallenge;

msgChallenged Source code

var localized string msgChallenged;

msgInstaGib Source code

var localized string msgInstaGib;

MutInstaGib Source code

var string MutInstaGib;
additional URL for an instagib game = ?mutator = xGame.MutInstaGib

NormalGoalScore Source code

var int NormalGoalScore;
diffirent goal scores for normal and insta game

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;


Functions Detail

CheapestBot Source code

function int CheapestBot ( array<string> list )

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

onSelectChar Source code

function bool onSelectChar ( GUIComponent Sender )

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 )

StartMatch Source code

function StartMatch ( )

UpdateDetails Source code

function UpdateDetails ( GUIComponent Sender )

UpdateEnemyTeam Source code

function UpdateEnemyTeam ( 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=Wahr
     End Object
     imgMap1=GUIImage'GUI2K4.UT2K4SP_CGBloodRites.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=Wahr
     End Object
     imgMap2=GUIImage'GUI2K4.UT2K4SP_CGBloodRites.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=Wahr
     End Object
     imgMapBg1=GUIImage'GUI2K4.UT2K4SP_CGBloodRites.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=Wahr
     End Object
     imgMapBg2=GUIImage'GUI2K4.UT2K4SP_CGBloodRites.SPCimgMapBg2'

     Begin Object Class=GUIButton Name=SPMbtnOk
         Caption="ACCEPT"
         FontScale=FNS_Small
         WinTop=0.912731
         WinLeft=0.741321
         WinWidth=0.222222
         WinHeight=0.050694
         RenderWeight=0.200000
         TabOrder=1
         bBoundToParent=Wahr
         OnClick=UT2K4SP_CGBloodRites.onOkClick
         OnKeyEvent=SPMbtnOk.InternalOnKeyEvent
     End Object
     btnOK=GUIButton'GUI2K4.UT2K4SP_CGBloodRites.SPMbtnOk'

     Begin Object Class=GUIButton Name=SPCbtnCancel
         Caption="REFUSE"
         FontScale=FNS_Small
         WinTop=0.912731
         WinLeft=0.037848
         WinWidth=0.222222
         WinHeight=0.050694
         RenderWeight=0.200000
         TabOrder=2
         bBoundToParent=Wahr
         OnClick=UT2K4SP_CGBloodRites.onCancelClick
         OnKeyEvent=SPCbtnCancel.InternalOnKeyEvent
     End Object
     btnCancel=GUIButton'GUI2K4.UT2K4SP_CGBloodRites.SPCbtnCancel'

     Begin Object Class=GUIButton Name=CGBbtnNextChar
         StyleName="ArrowRight"
         Hint="Select the team mate you want"
         WinTop=0.673333
         WinLeft=0.203437
         WinWidth=0.048750
         WinHeight=0.073750
         bBoundToParent=Wahr
         bNeverFocus=Wahr
         bRepeatClick=Wahr
         OnClickSound=CS_Up
         OnClick=UT2K4SP_CGBloodRites.onSelectChar
         OnKeyEvent=CGBbtnNextChar.InternalOnKeyEvent
     End Object
     btnNextChar=GUIButton'GUI2K4.UT2K4SP_CGBloodRites.CGBbtnNextChar'

     Begin Object Class=GUIButton Name=CGBbtnPrevChar
         StyleName="ArrowLeft"
         Hint="Select the team mate you want"
         WinTop=0.673333
         WinLeft=0.042500
         WinWidth=0.048750
         WinHeight=0.073750
         bBoundToParent=Wahr
         bNeverFocus=Wahr
         bRepeatClick=Wahr
         OnClickSound=CS_Down
         OnClick=UT2K4SP_CGBloodRites.onSelectChar
         OnKeyEvent=CGBbtnPrevChar.InternalOnKeyEvent
     End Object
     btnPrevChar=GUIButton'GUI2K4.UT2K4SP_CGBloodRites.CGBbtnPrevChar'

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

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

     lblNoPreview2=GUILabel'GUI2K4.UT2K4SP_CGBloodRites.NoPreview'

     Begin Object Class=GUILabel Name=CGBlblSelChar
         Caption="Team Mate"
         TextAlign=TXTA_Center
         StyleName="TextLabel"
         WinTop=0.530864
         WinLeft=0.047222
         WinWidth=0.197917
         WinHeight=0.043750
         bBoundToParent=Wahr
     End Object
     lblSelChar=GUILabel'GUI2K4.UT2K4SP_CGBloodRites.CGBlblSelChar'

     Begin Object Class=GUILabel Name=CGBlblSelCharName
         TextAlign=TXTA_Center
         StyleName="TextLabel"
         WinTop=0.847530
         WinLeft=0.037222
         WinWidth=0.222917
         WinHeight=0.043750
         bBoundToParent=Wahr
     End Object
     lblSelCharName=GUILabel'GUI2K4.UT2K4SP_CGBloodRites.CGBlblSelCharName'

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

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

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

     Begin Object Class=moComboBox Name=SPCcbEnemyTeam
         bReadOnly=Wahr
         Caption="Challenge team:"
         OnCreateComponent=SPCcbEnemyTeam.InternalOnCreateComponent
         Hint="Challenge this team for a match"
         WinTop=0.528114
         WinLeft=0.280556
         WinWidth=0.696528
         WinHeight=0.053472
         TabOrder=3
         bBoundToParent=Wahr
         OnChange=UT2K4SP_CGBloodRites.UpdateEnemyTeam
     End Object
     cbEnemyTeam=moComboBox'GUI2K4.UT2K4SP_CGBloodRites.SPCcbEnemyTeam'

     Begin Object Class=GUIScrollTextBox Name=SPCsbDetails
         bNoTeletype=Wahr
         OnCreateComponent=SPCsbDetails.InternalOnCreateComponent
         WinTop=0.657976
         WinLeft=0.282292
         WinWidth=0.689583
         WinHeight=0.243611
         RenderWeight=0.200000
         TabOrder=1
         bBoundToParent=Wahr
     End Object
     sbDetails=GUIScrollTextBox'GUI2K4.UT2K4SP_CGBloodRites.SPCsbDetails'

     Begin Object Class=GUICharacterListTeam Name=CGBclSelChar
         FixedItemsPerPage=1
         StyleName="CharButton"
         Hint="Challenge for this team mate"
         WinTop=0.576250
         WinLeft=0.088462
         WinWidth=0.118444
         WinHeight=0.268750
         TabOrder=0
         bBoundToParent=Wahr
         OnClick=CGBclSelChar.InternalOnClick
         OnRightClick=CGBclSelChar.InternalOnRightClick
         OnMousePressed=CGBclSelChar.InternalOnMousePressed
         OnMouseRelease=CGBclSelChar.InternalOnMouseRelease
         OnChange=UT2K4SP_CGBloodRites.UpdateDetails
         OnKeyEvent=CGBclSelChar.InternalOnKeyEvent
         OnBeginDrag=CGBclSelChar.InternalOnBeginDrag
         OnEndDrag=CGBclSelChar.InternalOnEndDrag
         OnDragDrop=CGBclSelChar.InternalOnDragDrop
         OnDragEnter=CGBclSelChar.InternalOnDragEnter
         OnDragLeave=CGBclSelChar.InternalOnDragLeave
         OnDragOver=CGBclSelChar.InternalOnDragOver
     End Object
     clSelChar=GUICharacterListTeam'GUI2K4.UT2K4SP_CGBloodRites.CGBclSelChar'

     Begin Object Class=moCheckBox Name=SPCcbInstaGib
         Caption="InstaGib Game"
         OnCreateComponent=SPCcbInstaGib.InternalOnCreateComponent
         Hint="In this an InstaGib Match"
         WinTop=0.586447
         WinLeft=0.280556
         WinWidth=0.696528
         WinHeight=0.053472
         TabOrder=4
         bBoundToParent=Wahr
         OnChange=UT2K4SP_CGBloodRites.UpdateEnemyTeam
     End Object
     cbInstaGib=moCheckBox'GUI2K4.UT2K4SP_CGBloodRites.SPCcbInstaGib'

     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 challenge %enemyteam% for their team mate %selectedchar%. In order to challenge %enemyteam% for one of their team members you will have to pay %entryfee%. The %gametype% will take place in %map%."
     msgChallenged="You have been challenged by %enemyteam%. They are challenging you for your team member %selectedchar%. The %gametype% will take place in %map%.|When you refuse you will have to pay them %penalty%"
     msgInstaGib="InstaGib"
     CantAffordCancel="You can't afford to refuse this challenge.|You have to pay %cancelpenalty% to refuse, but you only have %balance%."
     DefaultUrl="?TeamScreen=true"
     ChalGameType="xGame.xTeamGame"
     MutInstaGib="?mutator=xGame.MutInstaGib"
     ChalledFeeMultiply=2.000000
     NormalGoalScore=25
     InstaGoalScore=35
     MapPrefix="DM"
     DefaultLeft=0.050000
     DefaultTop=0.050000
     DefaultWidth=0.900000
     DefaultHeight=0.900000
     OnClose=UT2K4SP_CGBloodRites.OnWindowClose
     OnCanClose=UT2K4SP_CGBloodRites.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: Mo 16.4.2007 11:20:35.250 - Created with UnCodeX