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

GUI2K4.UT2K4SPTab_ProfileNew

Extends
UT2K4SPTab_Base

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

Variables Summary
GUIButtonbtnNextSkin
GUIButtonbtnNextSponsor
GUIButtonbtnPrevSkin
GUIButtonbtnPrevSponsor
moComboBoxcbDifficulty
GUICharacterListTeamclPlayerSkins
stringDefaultCharacter
intDefaultDifficulty
stringDefaultTeamName
intDefaultTeamSponsor
moEditBoxedName
moEditBoxedTeam
stringErrorCantCreateProfile
stringErrorProfileExists
stringGameIntroURL
GUIImageListilSponsor
array<string>InitialFreeAgents
GUISectionBackgroundsbEditBg
GUISectionBackgroundsbPortraitBack
GUISectionBackgroundsbSponsorBack
stringTeamSponsorPrefix
UT2K4SPTab_ProfileNew
stringDifficultyLevels[8]
Inherited Variables from GUI2K4.UT2K4SPTab_Base
CaptionBack, CaptionCancel, CaptionCreate, CaptionDone, CaptionLoad, CaptionPlay, GP, LogPrefix, MainWindow, ProfileClass

Functions Summary
function AddDefaultBots (UT2K4GameProfile GP)
function AddDefaultTeams (UT2K4GameProfile GP)
function InitComponent (GUIController pMyController, GUIComponent MyOwner)
function LoadSponsorSymbols ()
functionbool onBackClick ()
function OnNameActivate ()
function onNameChange (GUIComponent Sender)
function OnNameDeActivate ()
functionbool onPlayClick ()
functionbool onSelectSkin (GUIComponent Sender)
functionbool onSelectSponsor (GUIComponent Sender)
function OnTeamActivate ()
function ResetValues ()
function ShowPanel (bool bShow)
Inherited Functions from GUI2K4.UT2K4SPTab_Base
btnPlayEnabled, CanClose, GetMainWindow, getProfileName, InitComponent, onBackClick, onPlayClick, ShowPanel


Variables Detail

btnNextSkin Source code

var automated GUIButton btnNextSkin;

btnNextSponsor Source code

var automated GUIButton btnNextSponsor;

btnPrevSkin Source code

var automated GUIButton btnPrevSkin;

btnPrevSponsor Source code

var automated GUIButton btnPrevSponsor;

cbDifficulty Source code

var automated moComboBox cbDifficulty;

clPlayerSkins Source code

var automated GUICharacterListTeam clPlayerSkins;

DefaultCharacter Source code

var string DefaultCharacter;

DefaultDifficulty Source code

var int DefaultDifficulty;

DefaultTeamName Source code

var localized string DefaultTeamName;

DefaultTeamSponsor Source code

var int DefaultTeamSponsor;

edName Source code

var automated moEditBox edName;

edTeam Source code

var automated moEditBox edTeam;

ErrorCantCreateProfile Source code

var localized string ErrorCantCreateProfile;

ErrorProfileExists Source code

var localized string ErrorProfileExists;

GameIntroURL Source code

var string GameIntroURL;
The URL to visit after a profile has been created, the profile name will be appended to the end

ilSponsor Source code

var automated GUIImageList ilSponsor;

InitialFreeAgents Source code

var array<string> InitialFreeAgents;
more agents to add to the free agent pool

sbEditBg Source code

var automated GUISectionBackground sbEditBg;

sbPortraitBack Source code

var automated GUISectionBackground sbPortraitBack;

sbSponsorBack Source code

var automated GUISectionBackground sbSponsorBack;

TeamSponsorPrefix Source code

var string TeamSponsorPrefix;

UT2K4SPTab_ProfileNew

DifficultyLevels[8] Source code

var(UT2K4SPTab_ProfileNew) localized string DifficultyLevels[8];


Functions Detail

AddDefaultBots Source code

function AddDefaultBots ( UT2K4GameProfile GP )
Add the default bots to the free agent list

AddDefaultTeams Source code

function AddDefaultTeams ( UT2K4GameProfile GP )
Add the default teams to the list (the Phantom teams)

InitComponent Source code

function InitComponent ( GUIController pMyController, GUIComponent MyOwner )

LoadSponsorSymbols Source code

function LoadSponsorSymbols ( )
Loads all Sponsor symbols

onBackClick Source code

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

OnNameActivate Source code

function OnNameActivate ( )
Clear the input box when it has the default name

onNameChange Source code

function onNameChange ( GUIComponent Sender )
Disable "create" button when names are empty

OnNameDeActivate Source code

function OnNameDeActivate ( )
Check to see if we have an empty name

onPlayClick Source code

function bool onPlayClick ( )
Create the profile and load it

onSelectSkin Source code

function bool onSelectSkin ( GUIComponent Sender )
Change the selected skin

onSelectSponsor Source code

function bool onSelectSponsor ( GUIComponent Sender )
Change the selected sponsor

OnTeamActivate Source code

function OnTeamActivate ( )
Clear the input box when it has the default team name

ResetValues Source code

function ResetValues ( )
Will reset all the settings to their initial value

ShowPanel Source code

function ShowPanel ( bool bShow )


Defaultproperties

defaultproperties
{
     Begin Object Class=GUISectionBackground Name=SPNimgEditBg
         Caption="Profile"
         WinTop=0.101463
         WinLeft=0.536263
         WinWidth=0.425171
         WinHeight=0.770000
         bBoundToParent=True
         OnPreDraw=SPNimgEditBg.InternalPreDraw
     End Object
     sbEditBg=GUISectionBackground'GUI2K4.UT2K4SPTab_ProfileNew.SPNimgEditBg'

     Begin Object Class=GUISectionBackground Name=SPNimgPortraitBack
         Caption="Portrait"
         WinTop=0.101463
         WinLeft=0.030428
         WinWidth=0.234133
         WinHeight=0.770000
         bBoundToParent=True
         OnPreDraw=SPNimgPortraitBack.InternalPreDraw
     End Object
     sbPortraitBack=GUISectionBackground'GUI2K4.UT2K4SPTab_ProfileNew.SPNimgPortraitBack'

     Begin Object Class=GUISectionBackground Name=SPNimgSponsorBack
         Caption="Team symbol"
         WinTop=0.101463
         WinLeft=0.273865
         WinWidth=0.253265
         WinHeight=0.770000
         bBoundToParent=True
         OnPreDraw=SPNimgSponsorBack.InternalPreDraw
     End Object
     sbSponsorBack=GUISectionBackground'GUI2K4.UT2K4SPTab_ProfileNew.SPNimgSponsorBack'

     Begin Object Class=GUIButton Name=SPNbtnPrevSkin
         StyleName="ArrowLeft"
         Hint="Selects a new appearance for your character"
         WinTop=0.733722
         WinLeft=0.060867
         WinWidth=0.048750
         WinHeight=0.080000
         TabOrder=5
         bBoundToParent=True
         bNeverFocus=True
         bRepeatClick=True
         OnClickSound=CS_Down
         OnClick=UT2K4SPTab_ProfileNew.onSelectSkin
         OnKeyEvent=SPNbtnPrevSkin.InternalOnKeyEvent
     End Object
     btnPrevSkin=GUIButton'GUI2K4.UT2K4SPTab_ProfileNew.SPNbtnPrevSkin'

     Begin Object Class=GUIButton Name=SPNbtnNextSkin
         StyleName="ArrowRight"
         Hint="Selects a new appearance for your character"
         WinTop=0.733722
         WinLeft=0.178054
         WinWidth=0.048750
         WinHeight=0.080000
         TabOrder=6
         bBoundToParent=True
         bNeverFocus=True
         bRepeatClick=True
         OnClickSound=CS_Up
         OnClick=UT2K4SPTab_ProfileNew.onSelectSkin
         OnKeyEvent=SPNbtnNextSkin.InternalOnKeyEvent
     End Object
     btnNextSkin=GUIButton'GUI2K4.UT2K4SPTab_ProfileNew.SPNbtnNextSkin'

     Begin Object Class=GUIButton Name=SPNbtnPrevSponsor
         StyleName="ArrowLeft"
         Hint="Selects a new symbol for your team"
         WinTop=0.733722
         WinLeft=0.311505
         WinWidth=0.048750
         WinHeight=0.080000
         TabOrder=8
         bBoundToParent=True
         bNeverFocus=True
         bRepeatClick=True
         OnClickSound=CS_Down
         OnClick=UT2K4SPTab_ProfileNew.onSelectSponsor
         OnKeyEvent=SPNbtnPrevSponsor.InternalOnKeyEvent
     End Object
     btnPrevSponsor=GUIButton'GUI2K4.UT2K4SPTab_ProfileNew.SPNbtnPrevSponsor'

     Begin Object Class=GUIButton Name=SPNbtnNextSponsor
         StyleName="ArrowRight"
         Hint="Selects a new symbol for your team"
         WinTop=0.733722
         WinLeft=0.433380
         WinWidth=0.055000
         WinHeight=0.080000
         TabOrder=9
         bBoundToParent=True
         bNeverFocus=True
         bRepeatClick=True
         OnClickSound=CS_Up
         OnClick=UT2K4SPTab_ProfileNew.onSelectSponsor
         OnKeyEvent=SPNbtnNextSponsor.InternalOnKeyEvent
     End Object
     btnNextSponsor=GUIButton'GUI2K4.UT2K4SPTab_ProfileNew.SPNbtnNextSponsor'

     Begin Object Class=moEditBox Name=SPNmeName
         bVerticalLayout=True
         Caption="Player Name: "
         OnCreateComponent=SPNmeName.InternalOnCreateComponent
         Hint="Your character's name"
         WinTop=0.286087
         WinLeft=0.572258
         WinWidth=0.345000
         WinHeight=0.122500
         TabOrder=1
         bBoundToParent=True
         OnActivate=UT2K4SPTab_ProfileNew.OnNameActivate
         OnDeActivate=UT2K4SPTab_ProfileNew.OnNameDeActivate
         OnChange=UT2K4SPTab_ProfileNew.onNameChange
     End Object
     edName=moEditBox'GUI2K4.UT2K4SPTab_ProfileNew.SPNmeName'

     Begin Object Class=moEditBox Name=SPNmeTeam
         bVerticalLayout=True
         Caption="Team Name: "
         OnCreateComponent=SPNmeTeam.InternalOnCreateComponent
         Hint="The name of your team"
         WinTop=0.428007
         WinLeft=0.572258
         WinWidth=0.345000
         WinHeight=0.122500
         TabOrder=2
         bBoundToParent=True
         OnActivate=UT2K4SPTab_ProfileNew.OnTeamActivate
         OnDeActivate=UT2K4SPTab_ProfileNew.OnNameDeActivate
         OnChange=UT2K4SPTab_ProfileNew.onNameChange
     End Object
     edTeam=moEditBox'GUI2K4.UT2K4SPTab_ProfileNew.SPNmeTeam'

     Begin Object Class=moComboBox Name=SPNmcDifficulty
         bReadOnly=True
         bVerticalLayout=True
         Caption="Difficulty: "
         OnCreateComponent=SPNmcDifficulty.InternalOnCreateComponent
         Hint="Customize your challenge"
         WinTop=0.568803
         WinLeft=0.572258
         WinWidth=0.345000
         WinHeight=0.068311
         TabOrder=3
         bBoundToParent=True
     End Object
     cbDifficulty=moComboBox'GUI2K4.UT2K4SPTab_ProfileNew.SPNmcDifficulty'

     Begin Object Class=GUICharacterListTeam Name=SPNclPlayerSkins
         FixedItemsPerPage=1
         StyleName="CharButton"
         Hint="Your character's appearance, use arrow keys to change"
         WinTop=0.191921
         WinLeft=0.048207
         WinWidth=0.199566
         WinHeight=0.500000
         TabOrder=0
         bBoundToParent=True
         OnClick=SPNclPlayerSkins.InternalOnClick
         OnRightClick=SPNclPlayerSkins.InternalOnRightClick
         OnMousePressed=SPNclPlayerSkins.InternalOnMousePressed
         OnMouseRelease=SPNclPlayerSkins.InternalOnMouseRelease
         OnKeyEvent=SPNclPlayerSkins.InternalOnKeyEvent
         OnBeginDrag=SPNclPlayerSkins.InternalOnBeginDrag
         OnEndDrag=SPNclPlayerSkins.InternalOnEndDrag
         OnDragDrop=SPNclPlayerSkins.InternalOnDragDrop
         OnDragEnter=SPNclPlayerSkins.InternalOnDragEnter
         OnDragLeave=SPNclPlayerSkins.InternalOnDragLeave
         OnDragOver=SPNclPlayerSkins.InternalOnDragOver
     End Object
     clPlayerSkins=GUICharacterListTeam'GUI2K4.UT2K4SPTab_ProfileNew.SPNclPlayerSkins'

     Begin Object Class=GUIImageList Name=SPNilSponsor
         bWrap=True
         ImageStyle=ISTY_Justified
         ImageRenderStyle=MSTY_Normal
         ImageAlign=IMGA_Center
         Hint="Your team's sponsor, use arrow keys to change"
         WinTop=0.189296
         WinLeft=0.304401
         WinWidth=0.185561
         WinHeight=0.506378
         TabOrder=7
         bBoundToParent=True
     End Object
     ilSponsor=GUIImageList'GUI2K4.UT2K4SPTab_ProfileNew.SPNilSponsor'

     DefaultTeamName="Team"
     DefaultCharacter="Jakob"
     TeamSponsorPrefix="TeamSymbols_UT2003.sym"
     DefaultDifficulty=2
     DefaultTeamSponsor=1
     InitialFreeAgents(0)="Hathor"
     InitialFreeAgents(1)="Huntress"
     InitialFreeAgents(2)="Sunspear"
     InitialFreeAgents(3)="Cipher"
     InitialFreeAgents(4)="Medusa"
     InitialFreeAgents(5)="Jackhammer"
     InitialFreeAgents(6)="Avarice"
     InitialFreeAgents(7)="Darkling"
     GameIntroURL="MOV-UT2004-Intro?quickstart=true?TeamScreen=False?savegame="
     ErrorProfileExists="Profile with name '%profile%' already exists!"
     ErrorCantCreateProfile="Profile creation failed."
     DifficultyLevels(0)="Novice"
     DifficultyLevels(1)="Average"
     DifficultyLevels(2)="Experienced"
     DifficultyLevels(3)="Skilled"
     DifficultyLevels(4)="Adept"
     DifficultyLevels(5)="Masterful"
     DifficultyLevels(6)="Inhuman"
     DifficultyLevels(7)="Godlike"
     PanelCaption="New profile"
}

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