ROInterface.ROUT2K4TabPanel_RoleSelection
- Extends
- UT2K4TabPanel
Core.Object
|
+-- XInterface.GUI
|
+-- XInterface.GUIComponent
|
+-- XInterface.GUIMultiComponent
|
+-- XInterface.GUIPanel
|
+-- XInterface.GUITabPanel
|
+-- XInterface.UT2K4TabPanel
|
+-- ROInterface.ROUT2K4TabPanel_RoleSelection
const NUM_ROLES = 10;
var int currentRoleIndex;
var automated
GUIImage i_SecondaryImage;
var int lastTeamIndex;
var localized string NoneText;
delegate OnSelect ( int index )
findRoleIndexByAltName Source code
function int findRoleIndexByAltName ( string altName) )
function InitPreview ( ) )
function populateRoleList ( ) )
function refreshRoleCount ( ) )
setCurrentRoleSelection Source code
function setCurrentRoleSelection ( ) )
function setRoleByIndex ( int index) )
function ShowPanel ( bool bShow) )
function Timer ( ) )
function UpdateCurrentWeapon ( ) )
function updateGrenadeCombo ( ) )
function updateGrenadeInfo ( ) )
function updatePrimaryCombo ( ) )
function updatePrimaryInfo ( ) )
function bool UpdateRoles ( ) )
function updateSecondaryCombo ( ) )
function updateSecondaryInfo ( ) )
defaultproperties
{
Begin Object Class=GUIButton Name=SelectButton
Caption="Select"
Hint="Select Role."
WinTop=0.930000
WinLeft=0.796436
WinWidth=0.139474
WinHeight=0.052944
TabOrder=3
OnClick=ROUT2K4TabPanel_RoleSelection.InternalOnClick
OnKeyEvent=SelectButton.InternalOnKeyEvent
End Object
b_selectUnitButton=GUIButton'ROInterface.ROUT2K4TabPanel_RoleSelection.SelectButton'
Begin Object Class=GUIListBox Name=Roles
bVisibleWhenEmpty=True
bSorted=True
OnCreateComponent=Roles.InternalOnCreateComponent
WinTop=0.080000
WinLeft=0.020000
WinWidth=0.250000
WinHeight=0.330000
TabOrder=0
bBoundToParent=True
bScaleToParent=True
OnChange=ROUT2K4TabPanel_RoleSelection.OnRoleChange
End Object
lb_Roles=GUIListBox'ROInterface.ROUT2K4TabPanel_RoleSelection.Roles'
Begin Object Class=GUISectionBackground Name=RolesBG
Caption="Role Selection"
WinTop=0.010000
WinWidth=0.300000
WinHeight=0.500000
OnPreDraw=RolesBG.InternalPreDraw
End Object
i_RolesBG=GUISectionBackground'ROInterface.ROUT2K4TabPanel_RoleSelection.RolesBG'
Begin Object Class=GUISectionBackground Name=RolesDescriptionBG
Caption="Role Description"
WinTop=0.500000
WinWidth=0.500000
WinHeight=0.424000
OnPreDraw=RolesDescriptionBG.InternalPreDraw
End Object
i_RolesDescriptionBG=GUISectionBackground'ROInterface.ROUT2K4TabPanel_RoleSelection.RolesDescriptionBG'
Begin Object Class=GUIScrollTextBox Name=RoleDescription
CharDelay=0.002500
EOLDelay=0.500000
OnCreateComponent=RoleDescription.InternalOnCreateComponent
WinTop=0.540000
WinLeft=0.020000
WinWidth=0.470000
WinHeight=0.360000
bTabStop=False
bNeverFocus=True
End Object
lb_RoleDesc=GUIScrollTextBox'ROInterface.ROUT2K4TabPanel_RoleSelection.RoleDescription'
Begin Object Class=GUIImage Name=RoleImg
Image=Texture'Engine.WhiteSquareTexture'
ImageStyle=ISTY_Scaled
WinTop=0.030000
WinLeft=0.320000
WinWidth=0.180000
WinHeight=0.470000
End Object
RoleImage=GUIImage'ROInterface.ROUT2K4TabPanel_RoleSelection.RoleImg'
Begin Object Class=GUISectionBackground Name=PrimaryWeaponBG
WinLeft=0.520000
WinWidth=0.430000
WinHeight=0.300000
OnPreDraw=PrimaryWeaponBG.InternalPreDraw
End Object
i_PrimaryWeaponBG=GUISectionBackground'ROInterface.ROUT2K4TabPanel_RoleSelection.PrimaryWeaponBG'
Begin Object Class=GUISectionBackground Name=SecondaryWeaponBG
WinTop=0.310000
WinLeft=0.520000
WinWidth=0.430000
WinHeight=0.300000
OnPreDraw=SecondaryWeaponBG.InternalPreDraw
End Object
i_SecondaryWeaponBG=GUISectionBackground'ROInterface.ROUT2K4TabPanel_RoleSelection.SecondaryWeaponBG'
Begin Object Class=GUISectionBackground Name=GrenadeBG
WinTop=0.624000
WinLeft=0.520000
WinWidth=0.430000
WinHeight=0.300000
OnPreDraw=GrenadeBG.InternalPreDraw
End Object
i_GrenadeBG=GUISectionBackground'ROInterface.ROUT2K4TabPanel_RoleSelection.GrenadeBG'
Begin Object Class=moComboBox Name=PrimaryComboB
bReadOnly=True
CaptionWidth=0.450000
Caption="Primary Weapon"
OnCreateComponent=PrimaryComboB.InternalOnCreateComponent
Hint="Select your primary weapon"
WinTop=0.046350
WinLeft=0.550000
WinWidth=0.350000
WinHeight=0.060000
OnChange=ROUT2K4TabPanel_RoleSelection.OnComboChange
End Object
primaryCombo=moComboBox'ROInterface.ROUT2K4TabPanel_RoleSelection.PrimaryComboB'
Begin Object Class=moComboBox Name=SecondaryComboB
bReadOnly=True
CaptionWidth=0.450000
Caption="Secondary Weapon"
OnCreateComponent=SecondaryComboB.InternalOnCreateComponent
Hint="Select your secondary weapon"
WinTop=0.356350
WinLeft=0.550000
WinWidth=0.350000
WinHeight=0.060000
OnChange=ROUT2K4TabPanel_RoleSelection.OnComboChange
End Object
secondaryCombo=moComboBox'ROInterface.ROUT2K4TabPanel_RoleSelection.SecondaryComboB'
Begin Object Class=moComboBox Name=grenadeComboB
bReadOnly=True
CaptionWidth=0.350000
Caption="Grenades"
OnCreateComponent=grenadeComboB.InternalOnCreateComponent
Hint="Select your grenades"
WinTop=0.666350
WinLeft=0.550000
WinWidth=0.350000
WinHeight=0.060000
OnChange=ROUT2K4TabPanel_RoleSelection.OnComboChange
End Object
grenadeCombo=moComboBox'ROInterface.ROUT2K4TabPanel_RoleSelection.grenadeComboB'
Begin Object Class=GUIImage Name=PrimaryImage
Image=Texture'InterfaceArt_tex.Menu.changeme_texture'
ImageStyle=ISTY_Scaled
ImageRenderStyle=MSTY_Normal
IniOption="@Internal"
WinTop=0.106350
WinLeft=0.575000
WinWidth=0.300000
WinHeight=0.150000
RenderWeight=0.300000
End Object
i_PrimaryImage=GUIImage'ROInterface.ROUT2K4TabPanel_RoleSelection.PrimaryImage'
Begin Object Class=GUIImage Name=SecondaryImage
Image=Texture'InterfaceArt_tex.Menu.changeme_texture'
ImageStyle=ISTY_Scaled
ImageRenderStyle=MSTY_Normal
IniOption="@Internal"
WinTop=0.416350
WinLeft=0.575000
WinWidth=0.300000
WinHeight=0.150000
RenderWeight=0.300000
End Object
i_SecondaryImage=GUIImage'ROInterface.ROUT2K4TabPanel_RoleSelection.SecondaryImage'
Begin Object Class=GUIImage Name=GrenadeImage
Image=Texture'InterfaceArt_tex.Menu.changeme_texture'
ImageStyle=ISTY_Scaled
ImageRenderStyle=MSTY_Normal
IniOption="@Internal"
WinTop=0.726350
WinLeft=0.575000
WinWidth=0.300000
WinHeight=0.150000
RenderWeight=0.300000
End Object
i_GrenadeImage=GUIImage'ROInterface.ROUT2K4TabPanel_RoleSelection.GrenadeImage'
NoneText="None"
PanelCaption="Role"
}
|
Creation time: Fri 13-10-2023 03:18:52.654 - Created with
UnCodeX