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

GUI2K4.UT2K4SPTab_TeamManagement

Extends
UT2K4SPTab_Base

Core.Object
|   
+-- XInterface.GUI
   |   
   +-- XInterface.GUIComponent
      |   
      +-- XInterface.GUIMultiComponent
         |   
         +-- XInterface.GUIPanel
            |   
            +-- XInterface.GUITabPanel
               |   
               +-- XInterface.UT2K4TabPanel
                  |   
                  +-- GUI2K4.UT2K4SPTab_Base
                     |   
                     +-- GUI2K4.UT2K4SPTab_TeamManagement

Variables Summary
stringAccuracyCaption
intActiveBotPos
xUtil.PlayerRecordActivePR
intActiveTreatmentCost
stringAggressionCaption
stringAgilityCaption
boolbHasFullTeam
boolbInitialDraft
GUIButtonbtnAutoMake
GUIButtonbtnFire
GUIButtonbtnHire
GUIButtonbtnLeft
GUIButtonbtnRight
GUIButtonbtnTreat
GUIButtonbtnTreatAll
GUICharacterListTeamclFreeAgents
moEditBoxedBalance
MaterialEmptySlotImage
stringFeeCaption
stringHealthCaption
stringHealthHint
GUIImageimgSelectionFace
GUIImageimgSelectionFaceBg
GUILabellblTeam
stringmsgFirstDraftYourTeam
stringNameTitle
array<string>NewTeam
boolNoTeamEditing
GUIScrollTextBoxsbDescription
GUIScrollTextBoxsbDetails
GUISectionBackgroundsbgFreeAgentBg
GUISectionBackgroundsbgOverviewBg
GUISectionBackgroundsbgSelectionBg
GUISectionBackgroundsbgTeamBg
stringTacticsCaption
array<GUIImage>TeamFaces
array<GUIProgressBar>TeamHealth
intTotalTreatmentCost
Inherited Variables from GUI2K4.UT2K4SPTab_Base
CaptionBack, CaptionCancel, CaptionCreate, CaptionDone, CaptionLoad, CaptionPlay, GP, LogPrefix, MainWindow, ProfileClass

Functions Summary
function CreateTeamButtons (int cols, int rows, optional float topOffset))
function FillFreeAgentsList (GUICharacterListTeam cl))
functionbool FireBot (string botname, optional bool bUpdateList))
functionbool FreeAgentOnBeginDrag (GUIComponent Sender))
functionbool HireBot (string botname, optional bool bUpdateList))
function InitComponent (GUIController MyController, GUIComponent MyOwner))
function LockManagementTools ()))
functionbool onAutoMakeClick (GUIComponent Sender))
functionbool onBackClick ()))
functionbool onFireClick (GUIComponent Sender))
function onFreeAgentChange (GUIComponent Sender))
functionbool onFreeAgentScroll (GUIComponent Sender))
functionbool onHireClick (GUIComponent Sender))
functionbool onPlayClick ()))
functionbool onTeamOnClick (GUIComponent Sender))
functionbool onTreatAllClick (GUIComponent Sender))
functionbool onTreatClick (GUIComponent Sender))
function ShowPanel (bool bShow))
function showPlayerDetails (optional bool bIsTeamMate))
functionbool TeamMemberOnDragDrop (GUIComponent Target))
function UpdateTeamList ()))
Inherited Functions from GUI2K4.UT2K4SPTab_Base
btnPlayEnabled, CanClose, GetMainWindow, getProfileName, InitComponent, onBackClick, onPlayClick, ShowPanel


Variables Detail

AccuracyCaption Source code

var localized string AccuracyCaption;

ActiveBotPos Source code

var int ActiveBotPos;
Position of the currently selected bot in the bot stats list

ActivePR Source code

var xUtil.PlayerRecord ActivePR;
The PR of the currentl selected player

ActiveTreatmentCost Source code

var int ActiveTreatmentCost;
cost to heal selected player(s)

AggressionCaption Source code

var localized string AggressionCaption;

AgilityCaption Source code

var localized string AgilityCaption;

bHasFullTeam Source code

var bool bHasFullTeam;
true when the team is full, only used with bInitialDraft

bInitialDraft Source code

var bool bInitialDraft;
Initial team draft

btnAutoMake Source code

var automated GUIButton btnAutoMake;

btnFire Source code

var automated GUIButton btnFire;

btnHire Source code

var automated GUIButton btnHire;

btnLeft Source code

var automated GUIButton btnLeft;

btnRight Source code

var automated GUIButton btnRight;

btnTreat Source code

var automated GUIButton btnTreat;

btnTreatAll Source code

var automated GUIButton btnTreatAll;

clFreeAgents Source code

var automated GUICharacterListTeam clFreeAgents;

edBalance Source code

var automated moEditBox edBalance;

EmptySlotImage Source code

var Material EmptySlotImage;
Used for empty slots

FeeCaption Source code

var localized string FeeCaption;

HealthCaption Source code

var localized string HealthCaption;

HealthHint Source code

var localized string HealthHint;

imgSelectionFace Source code

var automated GUIImage imgSelectionFace;

imgSelectionFaceBg Source code

var automated GUIImage imgSelectionFaceBg;

lblTeam Source code

var automated GUILabel lblTeam;

msgFirstDraftYourTeam Source code

var localized string msgFirstDraftYourTeam;

NameTitle Source code

var localized string NameTitle;

NewTeam Source code

var array<string> NewTeam;
names in this list will be refunded when fired

NoTeamEditing Source code

var bool NoTeamEditing;
hire/fire options are locked

sbDescription Source code

var automated GUIScrollTextBox sbDescription;

sbDetails Source code

var automated GUIScrollTextBox sbDetails;

sbgFreeAgentBg Source code

var automated GUISectionBackground sbgFreeAgentBg;

sbgOverviewBg Source code

var automated GUISectionBackground sbgOverviewBg;

sbgSelectionBg Source code

var automated GUISectionBackground sbgSelectionBg;

sbgTeamBg Source code

var automated GUISectionBackground sbgTeamBg;

TacticsCaption Source code

var localized string TacticsCaption;

TeamFaces Source code

var array<GUIImage> TeamFaces;

TeamHealth Source code

var array<GUIProgressBar> TeamHealth;

TotalTreatmentCost Source code

var int TotalTreatmentCost;
cost to heal selected player(s)


Functions Detail

CreateTeamButtons Source code

function CreateTeamButtons ( int cols, int rows, optional float topOffset) )
Create the buttons for the team mates

FillFreeAgentsList Source code

function FillFreeAgentsList ( GUICharacterListTeam cl) )
Fills the character list with all available free agents

FireBot Source code

function bool FireBot ( string botname, optional bool bUpdateList) )
fire a bot by name refund the cash when the player is in the dirty list

FreeAgentOnBeginDrag Source code

function bool FreeAgentOnBeginDrag ( GUIComponent Sender) )

HireBot Source code

function bool HireBot ( string botname, optional bool bUpdateList) )
hire a bot by name and update the balance

InitComponent Source code

function InitComponent ( GUIController MyController, GUIComponent MyOwner) )

LockManagementTools Source code

function LockManagementTools ( ) )

onAutoMakeClick Source code

function bool onAutoMakeClick ( GUIComponent Sender) )

onBackClick Source code

function bool onBackClick ( ) )
Go back to the main menu when there are not proflies

onFireClick Source code

function bool onFireClick ( GUIComponent Sender) )

onFreeAgentChange Source code

function onFreeAgentChange ( GUIComponent Sender) )

onFreeAgentScroll Source code

function bool onFreeAgentScroll ( GUIComponent Sender) )
Scroll the free agent list

onHireClick Source code

function bool onHireClick ( GUIComponent Sender) )

onPlayClick Source code

function bool onPlayClick ( ) )
Play the selected match

onTeamOnClick Source code

function bool onTeamOnClick ( GUIComponent Sender) )

onTreatAllClick Source code

function bool onTreatAllClick ( GUIComponent Sender) )

onTreatClick Source code

function bool onTreatClick ( GUIComponent Sender) )
heal the active player

ShowPanel Source code

function ShowPanel ( bool bShow) )

showPlayerDetails Source code

function showPlayerDetails ( optional bool bIsTeamMate) )
Display details about the selected player, the "details" contain the players stats and price/fee

TeamMemberOnDragDrop Source code

function bool TeamMemberOnDragDrop ( GUIComponent Target) )

UpdateTeamList Source code

function UpdateTeamList ( ) )
Update team listing


Defaultproperties

defaultproperties
{
	
	Begin Object class=AltSectionBackground Name=SPLsbgTeamBg
		WinWidth=0.318750
		WinHeight=0.968750
		WinLeft=0.006173
		WinTop=0.016667
		Caption="Your team"
		bBoundToParent=true
    End Object
    sbgTeamBg=SPLsbgTeamBg


	
	Begin Object class=GUISectionBackground Name=SPLsbgSelectionBg
		WinWidth=0.425000
		WinHeight=0.662500
		WinLeft=0.562500
		WinTop=0.016667
		Caption="Selection"
		bBoundToParent=true
    End Object
    sbgSelectionBg=SPLsbgSelectionBg


	Begin Object Class=GUIImage Name=SPTMimgSelectionFaceBg
		Image=Material'2K4Menus.Controls.sectionback'
		WinWidth=0.095000
		WinHeight=0.300000
		WinLeft=0.589082
		WinTop=0.081284
		ImageStyle=ISTY_Scaled
		RenderWeight=0.11
		bBoundToParent=true
	End Object
	imgSelectionFaceBg=SPTMimgSelectionFaceBg


	Begin Object Class=GUIImage Name=SPTMimgSelectionFace
		Image=Material'PlayerPictures.cDefault'
		WinWidth=0.092500
		WinHeight=0.290000
		WinLeft=0.590332
		WinTop=0.088182
		ImageStyle=ISTY_Scaled
		RenderWeight=0.12
		bBoundToParent=true
	End Object
	imgSelectionFace=SPTMimgSelectionFace


	Begin Object Class=GUIScrollTextBox Name=SPTMsbDescription
		WinWidth=0.382041
		WinHeight=0.274745
		WinLeft=0.585256
		WinTop=0.380130
		CharDelay=0.0025
		EOLDelay=0.5
		RenderWeight=0.2
		bVisibleWhenEmpty=true
		FontScale=FNS_Medium
		TabOrder=4
		StyleName="NoBackground"
		bBoundToParent=true
	End Object
	sbDescription=SPTMsbDescription


	Begin Object Class=GUIScrollTextBox Name=SPTMsbDetails
		WinWidth=0.278316
		WinHeight=0.280867
		WinLeft=0.689005
		WinTop=0.081284
		bNoTeletype=true
		RenderWeight=0.2
		bVisibleWhenEmpty=true
		FontScale=FNS_Medium
		TabOrder=3
		StyleName="NoBackground"
		bBoundToParent=true
	End Object
	sbDetails=SPTMsbDetails


	
	Begin Object class=GUISectionBackground Name=SPLsbgFreeAgentBg
		WinWidth=0.662755
		WinHeight=0.287500
		WinLeft=0.334872
		WinTop=0.700000
		Caption="Free agents"
		bBoundToParent=true
    End Object
    sbgFreeAgentBg=SPLsbgFreeAgentBg


	Begin Object class=GUICharacterListTeam Name=SPNclFreeAgents
		WinWidth=0.561505
		WinHeight=0.204490
		WinLeft=0.386122
		WinTop=0.762721
		bCenterInBounds=true
		StyleName="CharButton"
		RenderWeight=0.2
		OnChange=onFreeAgentChange
		TabOrder=4
		bDropSource=true
		bDropTarget=true
		OnDragDrop=TeamMemberOnDragDrop
		OnBeginDrag=FreeAgentOnBeginDrag
		bMultiSelect=false
		bBoundToParent=true
	End Object
	clFreeAgents=SPNclFreeAgents


	Begin Object class=GUIButton Name=SPNbtnLeft
		WinWidth=0.050000
		WinHeight=0.090000
		WinLeft=0.343750
		WinTop=0.806154
		bNeverFocus=true
		bRepeatClick=true
		OnClickSound=CS_Down
		StyleName="ArrowLeft"
		OnClick=onFreeAgentScroll
		TabOrder=5
		bBoundToParent=true
	End Object
	btnLeft=SPNbtnLeft


	Begin Object class=GUIButton Name=SPNbtnRight
		WinWidth=0.050000
		WinHeight=0.090000
		WinLeft=0.938750
		WinTop=0.806154
		StyleName="ArrowRight"
		bNeverFocus=true
		bRepeatClick=true
		OnClickSound=CS_Up
		OnClick=onFreeAgentScroll
		TabOrder=6
		bBoundToParent=true
	End Object
	btnRight=SPNbtnRight


	
	Begin Object Class=GUIButton Name=SPPbtnHire
		Caption="HIRE"
		Hint="Hire the selected player"
		WinWidth=0.206250
		WinHeight=0.050000
		WinLeft=0.341199
		WinTop=0.033333
		RenderWeight=0.2
		MenuState=MSAT_Disabled
		OnClick=onHireClick
		FontScale=FNS_Small
		TabOrder=1
		bBoundToParent=true
	End Object
	btnHire=SPPbtnHire


	Begin Object Class=GUIButton Name=SPPbtnFire
		Caption="RELEASE"
		Hint="Fire this team mate"
		WinWidth=0.206250
		WinHeight=0.050000
		WinLeft=0.341199
		WinTop=0.091667
		RenderWeight=0.2
		MenuState=MSAT_Disabled
		OnClick=onFireClick
		FontScale=FNS_Small
		TabOrder=2
		bBoundToParent=true
	End Object
	btnFire=SPPbtnFire


	Begin Object Class=GUIButton Name=SPPbtnAutoMake
		Caption="AUTO FILL"
		Hint="Automatically fill your team"
		WinWidth=0.206250
		WinHeight=0.050000
		WinLeft=0.341199
		WinTop=0.150000
		RenderWeight=0.2
		OnClick=onAutoMakeClick
		FontScale=FNS_Small
		TabOrder=3
		bBoundToParent=true
	End Object
	btnAutoMake=SPPbtnAutoMake


	Begin Object class=AltSectionBackground Name=SPLsbgOverviewBg
		WinWidth=0.212628
		WinHeight=0.468750
		WinLeft=0.337372
		WinTop=0.208333
		bBoundToParent=true
    End Object
    sbgOverviewBg=SPLsbgOverviewBg


	Begin Object class=moEditBox Name=SPTMedBalance
		Caption="Balance:"
		Hint=""
		WinWidth=0.179694
		WinHeight=0.034156
		WinLeft=0.355102
		WinTop=0.271283
		bVerticalLayout=true
		TabOrder=4
		bReadOnly=true
		bBoundToParent=true
	End Object
	edBalance=SPTMedBalance


	Begin Object Class=GUIButton Name=SPPbtnTreat
		Caption="TREAT INJURIES"
		Hint="Treat the injuries of the current player"
		WinWidth=0.184821
		WinHeight=0.050000
		WinLeft=0.352550
		WinTop=0.521536
		RenderWeight=0.2
		MenuState=MSAT_Disabled
		OnClick=onTreatClick
		FontScale=FNS_Small
		TabOrder=5
		bBoundToParent=true
	End Object
	btnTreat=SPPbtnTreat


	Begin Object Class=GUIButton Name=SPPbtnTreatAll
		Caption="TREAT ALL"
		Hint="Treat the injuries of all your team mates"
		WinWidth=0.184821
		WinHeight=0.050000
		WinLeft=0.352550
		WinTop=0.570382
		RenderWeight=0.2
		FontScale=FNS_Small
		OnClick=onTreatAllClick
		TabOrder=6
		bBoundToParent=true
	End Object
	btnTreatAll=SPPbtnTreatAll


	EmptySlotImage=Material'PlayerPictures.cDefault'
	bInitialDraft=false
	PanelCaption="Team Management"
	AggressionCaption="Aggressiveness:"
	NameTitle="Name:"
	AgilityCaption="Agility:"
	AccuracyCaption="Accuracy:"
	TacticsCaption="Tactics:"
	FeeCaption="Fee:"
	HealthCaption="Health:"
	HealthHint="%player%'s health is at %health%%"
	msgFirstDraftYourTeam="First draft your team."
}

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