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=GUIButton Name=SPMbtnOk
		Caption="ACCEPT"
		WinWidth=0.222222
		WinHeight=0.050694
		WinLeft=0.741321
		WinTop=0.912731
		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.050694
		WinLeft=0.037848
		WinTop=0.912731
		OnClick=onCancelClick
		RenderWeight=0.2
		FontScale=FNS_Small
		TabOrder=2
		bBoundToParent=true
	End Object
	btnCancel=SPCbtnCancel


	Begin Object Class=GUILabel Name=SPClblTitle
		Caption="Bloodrites"
		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=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.696528
		WinHeight=0.053472
		WinLeft=0.280556
		WinTop=0.528114
		bReadOnly=true
		TabOrder=3
		OnChange=UpdateEnemyTeam
		bBoundToParent=true
	End Object
	cbEnemyTeam=SPCcbEnemyTeam


	Begin Object class=moCheckBox name=SPCcbInstaGib
		Caption="InstaGib Game"
		Hint="In this an InstaGib Match"
		bAutoSizeCaption=true
		WinWidth=0.696528
		WinHeight=0.053472
		WinLeft=0.280556
		WinTop=0.586447
		TabOrder=4
		OnChange=UpdateEnemyTeam
		bBoundToParent=true
	End Object
	cbInstaGib=SPCcbInstaGib


	Begin Object Class=GUIScrollTextBox Name=SPCsbDetails
		WinWidth=0.689583
		WinHeight=0.243611
		WinLeft=0.282292
		WinTop=0.657976
		RenderWeight=0.2
		TabOrder=1
		bNoTeletype=true
		StyleName="NoBackground"
		bBoundToParent=true
	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
		bBoundToParent=true
    End Object
    lblNoPreview1=NoPreview
    lblNoPreview2=NoPreview


    
    Begin Object class=GUILabel name=CGBlblSelChar
        TextAlign=TXTA_Center
        Caption="Team Mate"
        StyleName="TextLabel"
		WinWidth=0.197917
		WinHeight=0.043750
		WinLeft=0.047222
		WinTop=0.530864
		bBoundToParent=true
    End Object
    lblSelChar=CGBlblSelChar


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


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


	Begin Object class=GUICharacterListTeam Name=CGBclSelChar
		Hint="Challenge for this team mate"
		WinWidth=0.118444
		WinHeight=0.268750
		WinLeft=0.088462
		WinTop=0.576250
		bCenterInBounds=true
		FixedItemsPerPage=1
		StyleName="CharButton"
		TabOrder=0
		OnChange=UpdateDetails
		bBoundToParent=true
	End Object
	clSelChar=CGBclSelChar


	Begin Object class=GUILabel name=CGBlblSelCharName
        TextAlign=TXTA_Center
        Caption=""
        StyleName="TextLabel"
		WinWidth=0.222917
		WinHeight=0.043750
		WinLeft=0.037222
		WinTop=0.847530
		bBoundToParent=true
    End Object
    lblSelCharName=CGBlblSelCharName


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


	DefaultLeft=0.05
	DefaultTop=0.05
	DefaultWidth=0.9
	DefaultHeight=0.9


	WinLeft=0.05
	WinTop=0.05
	WinWidth=0.9
	WinHeight=0.9


	OnClose=OnWindowClose
	OnCanClose=OnCanWindowClose


	PenaltyWarning="When you refuse you will have to pay a penalty of %cancelpenalty%.||Are you sure you want to refuse?"
	CantAffordCancel="You can't afford to refuse this challenge.|You have to pay %cancelpenalty% to refuse, but you only have %balance%."
	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"


	DefaultUrl="?TeamScreen=true"
	ChalGameType="xGame.xTeamGame"
	MutInstaGib="?mutator=xGame.MutInstaGib"
	InstaGoalScore=35
	NormalGoalScore=25
	MapPreFix="DM"
	ChalledFeeMultiply=2
}

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