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 lis

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
         Caption="Your team"
         WinTop=0.016667
         WinLeft=0.006173
         WinWidth=0.318750
         WinHeight=0.968750
         bBoundToParent=True
         OnPreDraw=SPLsbgTeamBg.InternalPreDraw
     End Object
     sbgTeamBg=AltSectionBackground'GUI2K4.UT2K4SPTab_TeamManagement.SPLsbgTeamBg'

     Begin Object Class=GUISectionBackground Name=SPLsbgSelectionBg
         Caption="Selection"
         WinTop=0.016667
         WinLeft=0.562500
         WinWidth=0.425000
         WinHeight=0.662500
         bBoundToParent=True
         OnPreDraw=SPLsbgSelectionBg.InternalPreDraw
     End Object
     sbgSelectionBg=GUISectionBackground'GUI2K4.UT2K4SPTab_TeamManagement.SPLsbgSelectionBg'

     Begin Object Class=GUISectionBackground Name=SPLsbgFreeAgentBg
         Caption="Free agents"
         WinTop=0.700000
         WinLeft=0.334872
         WinWidth=0.662755
         WinHeight=0.287500
         bBoundToParent=True
         OnPreDraw=SPLsbgFreeAgentBg.InternalPreDraw
     End Object
     sbgFreeAgentBg=GUISectionBackground'GUI2K4.UT2K4SPTab_TeamManagement.SPLsbgFreeAgentBg'

     Begin Object Class=AltSectionBackground Name=SPLsbgOverviewBg
         WinTop=0.208333
         WinLeft=0.337372
         WinWidth=0.212628
         WinHeight=0.468750
         bBoundToParent=True
         OnPreDraw=SPLsbgOverviewBg.InternalPreDraw
     End Object
     sbgOverviewBg=AltSectionBackground'GUI2K4.UT2K4SPTab_TeamManagement.SPLsbgOverviewBg'

     Begin Object Class=GUIImage Name=SPTMimgSelectionFaceBg
         Image=Texture'2K4Menus.Controls.sectionback'
         ImageStyle=ISTY_Scaled
         WinTop=0.081284
         WinLeft=0.589082
         WinWidth=0.095000
         WinHeight=0.300000
         RenderWeight=0.110000
         bBoundToParent=True
     End Object
     imgSelectionFaceBg=GUIImage'GUI2K4.UT2K4SPTab_TeamManagement.SPTMimgSelectionFaceBg'

     Begin Object Class=GUIImage Name=SPTMimgSelectionFace
         Image=Texture'PlayerPictures.cDefault'
         ImageStyle=ISTY_Scaled
         WinTop=0.088182
         WinLeft=0.590332
         WinWidth=0.092500
         WinHeight=0.290000
         RenderWeight=0.120000
         bBoundToParent=True
     End Object
     imgSelectionFace=GUIImage'GUI2K4.UT2K4SPTab_TeamManagement.SPTMimgSelectionFace'

     Begin Object Class=GUIScrollTextBox Name=SPTMsbDescription
         CharDelay=0.002500
         EOLDelay=0.500000
         bVisibleWhenEmpty=True
         OnCreateComponent=SPTMsbDescription.InternalOnCreateComponent
         WinTop=0.380130
         WinLeft=0.585256
         WinWidth=0.382041
         WinHeight=0.274745
         RenderWeight=0.200000
         TabOrder=4
         bBoundToParent=True
     End Object
     sbDescription=GUIScrollTextBox'GUI2K4.UT2K4SPTab_TeamManagement.SPTMsbDescription'

     Begin Object Class=GUIScrollTextBox Name=SPTMsbDetails
         bNoTeletype=True
         bVisibleWhenEmpty=True
         OnCreateComponent=SPTMsbDetails.InternalOnCreateComponent
         WinTop=0.081284
         WinLeft=0.689005
         WinWidth=0.278316
         WinHeight=0.280867
         RenderWeight=0.200000
         TabOrder=3
         bBoundToParent=True
     End Object
     sbDetails=GUIScrollTextBox'GUI2K4.UT2K4SPTab_TeamManagement.SPTMsbDetails'

     Begin Object Class=GUICharacterListTeam Name=SPNclFreeAgents
         bMultiSelect=False
         StyleName="CharButton"
         WinTop=0.762721
         WinLeft=0.386122
         WinWidth=0.561505
         WinHeight=0.204490
         RenderWeight=0.200000
         TabOrder=4
         bBoundToParent=True
         bDropSource=True
         bDropTarget=True
         OnClick=SPNclFreeAgents.InternalOnClick
         OnRightClick=SPNclFreeAgents.InternalOnRightClick
         OnMousePressed=SPNclFreeAgents.InternalOnMousePressed
         OnMouseRelease=SPNclFreeAgents.InternalOnMouseRelease
         OnChange=UT2K4SPTab_TeamManagement.onFreeAgentChange
         OnKeyEvent=SPNclFreeAgents.InternalOnKeyEvent
         OnBeginDrag=UT2K4SPTab_TeamManagement.FreeAgentOnBeginDrag
         OnEndDrag=SPNclFreeAgents.InternalOnEndDrag
         OnDragDrop=UT2K4SPTab_TeamManagement.TeamMemberOnDragDrop
         OnDragEnter=SPNclFreeAgents.InternalOnDragEnter
         OnDragLeave=SPNclFreeAgents.InternalOnDragLeave
         OnDragOver=SPNclFreeAgents.InternalOnDragOver
     End Object
     clFreeAgents=GUICharacterListTeam'GUI2K4.UT2K4SPTab_TeamManagement.SPNclFreeAgents'

     Begin Object Class=GUIButton Name=SPPbtnHire
         Caption="HIRE"
         MenuState=MSAT_Disabled
         FontScale=FNS_Small
         Hint="Hire the selected player"
         WinTop=0.033333
         WinLeft=0.341199
         WinWidth=0.206250
         WinHeight=0.050000
         RenderWeight=0.200000
         TabOrder=1
         bBoundToParent=True
         OnClick=UT2K4SPTab_TeamManagement.onHireClick
         OnKeyEvent=SPPbtnHire.InternalOnKeyEvent
     End Object
     btnHire=GUIButton'GUI2K4.UT2K4SPTab_TeamManagement.SPPbtnHire'

     Begin Object Class=GUIButton Name=SPPbtnFire
         Caption="RELEASE"
         MenuState=MSAT_Disabled
         FontScale=FNS_Small
         Hint="Fire this team mate"
         WinTop=0.091667
         WinLeft=0.341199
         WinWidth=0.206250
         WinHeight=0.050000
         RenderWeight=0.200000
         TabOrder=2
         bBoundToParent=True
         OnClick=UT2K4SPTab_TeamManagement.onFireClick
         OnKeyEvent=SPPbtnFire.InternalOnKeyEvent
     End Object
     btnFire=GUIButton'GUI2K4.UT2K4SPTab_TeamManagement.SPPbtnFire'

     Begin Object Class=GUIButton Name=SPNbtnLeft
         StyleName="ArrowLeft"
         WinTop=0.806154
         WinLeft=0.343750
         WinWidth=0.050000
         WinHeight=0.090000
         TabOrder=5
         bBoundToParent=True
         bNeverFocus=True
         bRepeatClick=True
         OnClickSound=CS_Down
         OnClick=UT2K4SPTab_TeamManagement.onFreeAgentScroll
         OnKeyEvent=SPNbtnLeft.InternalOnKeyEvent
     End Object
     btnLeft=GUIButton'GUI2K4.UT2K4SPTab_TeamManagement.SPNbtnLeft'

     Begin Object Class=GUIButton Name=SPNbtnRight
         StyleName="ArrowRight"
         WinTop=0.806154
         WinLeft=0.938750
         WinWidth=0.050000
         WinHeight=0.090000
         TabOrder=6
         bBoundToParent=True
         bNeverFocus=True
         bRepeatClick=True
         OnClickSound=CS_Up
         OnClick=UT2K4SPTab_TeamManagement.onFreeAgentScroll
         OnKeyEvent=SPNbtnRight.InternalOnKeyEvent
     End Object
     btnRight=GUIButton'GUI2K4.UT2K4SPTab_TeamManagement.SPNbtnRight'

     Begin Object Class=GUIButton Name=SPPbtnTreat
         Caption="TREAT INJURIES"
         MenuState=MSAT_Disabled
         FontScale=FNS_Small
         Hint="Treat the injuries of the current player"
         WinTop=0.521536
         WinLeft=0.352550
         WinWidth=0.184821
         WinHeight=0.050000
         RenderWeight=0.200000
         TabOrder=5
         bBoundToParent=True
         OnClick=UT2K4SPTab_TeamManagement.onTreatClick
         OnKeyEvent=SPPbtnTreat.InternalOnKeyEvent
     End Object
     btnTreat=GUIButton'GUI2K4.UT2K4SPTab_TeamManagement.SPPbtnTreat'

     Begin Object Class=GUIButton Name=SPPbtnTreatAll
         Caption="TREAT ALL"
         FontScale=FNS_Small
         Hint="Treat the injuries of all your team mates"
         WinTop=0.570382
         WinLeft=0.352550
         WinWidth=0.184821
         WinHeight=0.050000
         RenderWeight=0.200000
         TabOrder=6
         bBoundToParent=True
         OnClick=UT2K4SPTab_TeamManagement.onTreatAllClick
         OnKeyEvent=SPPbtnTreatAll.InternalOnKeyEvent
     End Object
     btnTreatAll=GUIButton'GUI2K4.UT2K4SPTab_TeamManagement.SPPbtnTreatAll'

     Begin Object Class=GUIButton Name=SPPbtnAutoMake
         Caption="AUTO FILL"
         FontScale=FNS_Small
         Hint="Automatically fill your team"
         WinTop=0.150000
         WinLeft=0.341199
         WinWidth=0.206250
         WinHeight=0.050000
         RenderWeight=0.200000
         TabOrder=3
         bBoundToParent=True
         OnClick=UT2K4SPTab_TeamManagement.onAutoMakeClick
         OnKeyEvent=SPPbtnAutoMake.InternalOnKeyEvent
     End Object
     btnAutoMake=GUIButton'GUI2K4.UT2K4SPTab_TeamManagement.SPPbtnAutoMake'

     Begin Object Class=moEditBox Name=SPTMedBalance
         bReadOnly=True
         bVerticalLayout=True
         Caption="Balance:"
         OnCreateComponent=SPTMedBalance.InternalOnCreateComponent
         WinTop=0.271283
         WinLeft=0.355102
         WinWidth=0.179694
         WinHeight=0.034156
         TabOrder=4
         bBoundToParent=True
     End Object
     edBalance=moEditBox'GUI2K4.UT2K4SPTab_TeamManagement.SPTMedBalance'

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

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