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

GUI2K4.UT2K4Tab_HudSettings

Extends
Settings_Tabs

Core.Object
|   
+-- XInterface.GUI
   |   
   +-- XInterface.GUIComponent
      |   
      +-- XInterface.GUIMultiComponent
         |   
         +-- XInterface.GUIPanel
            |   
            +-- XInterface.GUITabPanel
               |   
               +-- XInterface.UT2K4TabPanel
                  |   
                  +-- GUI2K4.Settings_Tabs
                     |   
                     +-- GUI2K4.UT2K4Tab_HudSettings

Variables Summary
GUIButtonb_CustomHUD
moCheckBoxch_CustomColor
moCheckBoxch_DeathMsgs
moCheckBoxch_EnemyNames
moCheckBoxch_Personal
moCheckBoxch_Portraits
moCheckBoxch_Score
moCheckBoxch_VCPortraits
moCheckBoxch_Visible
moCheckBoxch_WeaponBar
moCheckBoxch_Weapons
GUIComboBoxco_CustomHUD
array<CacheManager.GameRecord>Games
GUISectionBackgroundi_BG1
GUISectionBackgroundi_BG2
GUIImagei_Preview
GUIImagei_PreviewBG
GUIImagei_Scale
moNumericEditnu_MsgCount
moNumericEditnu_MsgOffset
moNumericEditnu_MsgScale
moSlidersl_Blue
moSlidersl_Green
moSlidersl_Opacity
moSlidersl_Red
moSlidersl_Scale
UT2K4Tab_HudSettings
boolbCustomColor
boolbNames
boolbNoMsgs
boolbPersonal
boolbPortraits
boolbScore
boolbVCPortraits
boolbVis
boolbWeaponBar
boolbWeapons
colorcCustom
floatboxDefaultBGPos
floatboxDefaultHealthPos
floatfOpacity
floatfScale
intiCount
intiOffset
intiScale
Inherited Variables from GUI2K4.Settings_Tabs
bAlwaysApply, bExpert, bNeedApply, PerformanceWarningMenu, PerformanceWarningText, Setting, t_Footer, WarningCounter, WarningLength

Functions Summary
function ChangeCustomStatus ()
functioncolor GetDefaultColor ()
function InitComponent (GUIController MyController, GUIComponent MyOwner)
function InitializeHUDColor ()
function InternalOnChange (GUIComponent Sender)
functionbool InternalOnClick (GUIComponent Sender)
function InternalOnLoadINI (GUIComponent Sender, string s)
function ResetClicked ()
functionbool SaveCustomHUDColor ()
function SaveSettings ()
function UpdatePreviewColor ()
functionbool UsingCustomColor ()
Inherited Functions from GUI2K4.Settings_Tabs
AcceptClicked, Closed, DrawPerfWarn, GetNativeClassName, InitComponent, InternalOnChange, Opened, ResetClicked, SaveSettings, ShowPanel, ShowPerformanceWarning, Timer


Variables Detail

b_CustomHUD Source code

var automated GUIButton b_CustomHUD;

ch_CustomColor Source code

var automated moCheckBox ch_CustomColor;

ch_DeathMsgs Source code

var automated moCheckBox ch_DeathMsgs;

ch_EnemyNames Source code

var automated moCheckBox ch_EnemyNames;

ch_Personal Source code

var automated moCheckBox ch_Personal;

ch_Portraits Source code

var automated moCheckBox ch_Portraits;

ch_Score Source code

var automated moCheckBox ch_Score;

ch_VCPortraits Source code

var automated moCheckBox ch_VCPortraits;

ch_Visible Source code

var automated moCheckBox ch_Visible;

ch_WeaponBar Source code

var automated moCheckBox ch_WeaponBar;

ch_Weapons Source code

var automated moCheckBox ch_Weapons;

co_CustomHUD Source code

var automated GUIComboBox co_CustomHUD;

Games Source code

var array<CacheManager.GameRecord> Games;

i_BG1 Source code

var automated GUISectionBackground i_BG1;

i_BG2 Source code

var automated GUISectionBackground i_BG2;

i_Preview Source code

var automated GUIImage i_Preview;

i_PreviewBG Source code

var automated GUIImage i_PreviewBG;

i_Scale Source code

var automated GUIImage i_Scale;

nu_MsgCount Source code

var automated moNumericEdit nu_MsgCount;

nu_MsgOffset Source code

var automated moNumericEdit nu_MsgOffset;

nu_MsgScale Source code

var automated moNumericEdit nu_MsgScale;

sl_Blue Source code

var automated moSlider sl_Blue;

sl_Green Source code

var automated moSlider sl_Green;

sl_Opacity Source code

var automated moSlider sl_Opacity;

sl_Red Source code

var automated moSlider sl_Red;

sl_Scale Source code

var automated moSlider sl_Scale;

UT2K4Tab_HudSettings

bCustomColor Source code

var(UT2K4Tab_HudSettings) bool bCustomColor;

bNames Source code

var(UT2K4Tab_HudSettings) bool bNames;

bNoMsgs Source code

var(UT2K4Tab_HudSettings) bool bNoMsgs;

bPersonal Source code

var(UT2K4Tab_HudSettings) bool bPersonal;

bPortraits Source code

var(UT2K4Tab_HudSettings) bool bPortraits;

bScore Source code

var(UT2K4Tab_HudSettings) bool bScore;

bVCPortraits Source code

var(UT2K4Tab_HudSettings) bool bVCPortraits;

bVis Source code

var(UT2K4Tab_HudSettings) bool bVis;

bWeaponBar Source code

var(UT2K4Tab_HudSettings) bool bWeaponBar;

bWeapons Source code

var(UT2K4Tab_HudSettings) bool bWeapons;

cCustom Source code

var(UT2K4Tab_HudSettings) color cCustom;

DefaultBGPos Source code

var(UT2K4Tab_HudSettings) floatbox DefaultBGPos;

DefaultHealthPos Source code

var(UT2K4Tab_HudSettings) floatbox DefaultHealthPos;

fOpacity Source code

var(UT2K4Tab_HudSettings) float fOpacity;

fScale Source code

var(UT2K4Tab_HudSettings) float fScale;

iCount Source code

var(UT2K4Tab_HudSettings) int iCount;

iOffset Source code

var(UT2K4Tab_HudSettings) int iOffset;

iScale Source code

var(UT2K4Tab_HudSettings) int iScale;


Functions Detail

ChangeCustomStatus Source code

function ChangeCustomStatus ( )

GetDefaultColor Source code

function color GetDefaultColor ( )

InitComponent Source code

function InitComponent ( GUIController MyController, GUIComponent MyOwner )

InitializeHUDColor Source code

function InitializeHUDColor ( )

InternalOnChange Source code

function InternalOnChange ( GUIComponent Sender )

InternalOnClick Source code

function bool InternalOnClick ( GUIComponent Sender )

InternalOnLoadINI Source code

function InternalOnLoadINI ( GUIComponent Sender, string s )

ResetClicked Source code

function ResetClicked ( )

SaveCustomHUDColor Source code

function bool SaveCustomHUDColor ( )

SaveSettings Source code

function SaveSettings ( )

UpdatePreviewColor Source code

function UpdatePreviewColor ( )

UsingCustomColor Source code

function bool UsingCustomColor ( )


Defaultproperties

defaultproperties
{
     Begin Object Class=GUISectionBackground Name=GameBK
         Caption="Options"
         WinTop=0.057604
         WinLeft=0.031797
         WinWidth=0.448633
         WinHeight=0.901485
         RenderWeight=0.001000
         OnPreDraw=GameBK.InternalPreDraw
     End Object
     i_BG1=GUISectionBackground'GUI2K4.UT2K4Tab_HudSettings.GameBK'

     Begin Object Class=GUISectionBackground Name=GameBK1
         Caption="Visuals"
         WinTop=0.060208
         WinLeft=0.517578
         WinWidth=0.448633
         WinHeight=0.901485
         RenderWeight=0.001000
         OnPreDraw=GameBK1.InternalPreDraw
     End Object
     i_BG2=GUISectionBackground'GUI2K4.UT2K4Tab_HudSettings.GameBK1'

     Begin Object Class=GUIImage Name=PreviewBK
         Image=Texture'2K4Menus.NewControls.NewTabBk'
         ImageStyle=ISTY_Scaled
         ImageAlign=IMGA_Center
         WinTop=0.211713
         WinLeft=0.749335
         WinWidth=0.163437
         WinHeight=0.121797
         RenderWeight=1.001000
     End Object
     i_Scale=GUIImage'GUI2K4.UT2K4Tab_HudSettings.PreviewBK'

     Begin Object Class=GUIImage Name=PreviewBackground
         Image=Texture'HUDContent.Generic.HUD'
         ImageStyle=ISTY_Scaled
         ImageAlign=IMGA_Center
         X1=0
         Y1=110
         X2=166
         Y2=163
         WinTop=0.211713
         WinLeft=0.749335
         WinWidth=0.163437
         WinHeight=0.121797
         RenderWeight=1.002000
     End Object
     i_PreviewBG=GUIImage'GUI2K4.UT2K4Tab_HudSettings.PreviewBackground'

     Begin Object Class=GUIImage Name=Preview
         Image=Texture'HUDContent.Generic.HUD'
         ImageStyle=ISTY_Scaled
         ImageAlign=IMGA_Center
         X1=74
         Y1=165
         X2=123
         Y2=216
         WinTop=0.211559
         WinLeft=0.749828
         WinWidth=0.063241
         WinHeight=0.099531
         RenderWeight=1.003000
     End Object
     i_Preview=GUIImage'GUI2K4.UT2K4Tab_HudSettings.Preview'

     Begin Object Class=moSlider Name=GameHudScale
         MaxValue=100.000000
         MinValue=50.000000
         LabelJustification=TXTA_Center
         ComponentJustification=TXTA_Left
         CaptionWidth=0.450000
         Caption="HUD Scaling"
         LabelColor=(B=255,G=255,R=255)
         OnCreateComponent=GameHudScale.InternalOnCreateComponent
         Hint="Adjust the size of the HUD"
         WinTop=0.309670
         WinLeft=0.555313
         WinWidth=0.373749
         TabOrder=12
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
     End Object
     sl_Scale=moSlider'GUI2K4.UT2K4Tab_HudSettings.GameHudScale'

     Begin Object Class=moSlider Name=GameHudOpacity
         MaxValue=100.000000
         MinValue=51.000000
         LabelJustification=TXTA_Center
         ComponentJustification=TXTA_Left
         CaptionWidth=0.450000
         Caption="HUD Opacity"
         LabelColor=(B=255,G=255,R=255)
         OnCreateComponent=GameHudOpacity.InternalOnCreateComponent
         Hint="Adjust the transparency of the HUD"
         WinTop=0.361753
         WinLeft=0.555313
         WinWidth=0.373749
         TabOrder=13
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
     End Object
     sl_Opacity=moSlider'GUI2K4.UT2K4Tab_HudSettings.GameHudOpacity'

     Begin Object Class=moSlider Name=HudColorR
         MaxValue=255.000000
         bIntSlider=Wahr
         CaptionWidth=0.350000
         Caption="Red:"
         LabelColor=(B=0,R=255)
         OnCreateComponent=HudColorR.InternalOnCreateComponent
         Hint="Adjust the amount of red in the HUD."
         WinTop=0.572917
         WinLeft=0.610000
         WinWidth=0.272187
         TabOrder=15
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
     End Object
     sl_Red=moSlider'GUI2K4.UT2K4Tab_HudSettings.HudColorR'

     Begin Object Class=moSlider Name=HudColorG
         MaxValue=255.000000
         bIntSlider=Wahr
         CaptionWidth=0.350000
         Caption="Green:"
         LabelColor=(B=0,G=255)
         OnCreateComponent=HudColorG.InternalOnCreateComponent
         Hint="Adjust the amount of green in the HUD."
         WinTop=0.660417
         WinLeft=0.610000
         WinWidth=0.272187
         TabOrder=17
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
     End Object
     sl_Green=moSlider'GUI2K4.UT2K4Tab_HudSettings.HudColorG'

     Begin Object Class=moSlider Name=HudColorB
         MaxValue=255.000000
         bIntSlider=Wahr
         CaptionWidth=0.350000
         Caption="Blue:"
         LabelColor=(B=255)
         OnCreateComponent=HudColorB.InternalOnCreateComponent
         Hint="Adjust the amount of blue in the HUD."
         WinTop=0.752500
         WinLeft=0.610000
         WinWidth=0.272187
         TabOrder=16
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
     End Object
     sl_Blue=moSlider'GUI2K4.UT2K4Tab_HudSettings.HudColorB'

     Begin Object Class=moNumericEdit Name=GameHudMessageCount
         MinValue=0
         MaxValue=8
         ComponentJustification=TXTA_Left
         CaptionWidth=0.700000
         Caption="Max. Chat Count"
         OnCreateComponent=GameHudMessageCount.InternalOnCreateComponent
         IniOption="@Internal"
         Hint="Number of lines of chat to display at once"
         WinTop=0.196875
         WinLeft=0.550781
         WinWidth=0.381250
         TabOrder=9
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
         OnLoadINI=UT2K4Tab_HudSettings.InternalOnLoadINI
     End Object
     nu_MsgCount=moNumericEdit'GUI2K4.UT2K4Tab_HudSettings.GameHudMessageCount'

     Begin Object Class=moNumericEdit Name=GameHudMessageScale
         MinValue=0
         MaxValue=8
         ComponentJustification=TXTA_Left
         CaptionWidth=0.700000
         Caption="Chat Font Size"
         OnCreateComponent=GameHudMessageScale.InternalOnCreateComponent
         IniOption="@Internal"
         Hint="Adjust the size of chat messages."
         WinTop=0.321874
         WinLeft=0.550781
         WinWidth=0.381250
         TabOrder=10
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
         OnLoadINI=UT2K4Tab_HudSettings.InternalOnLoadINI
     End Object
     nu_MsgScale=moNumericEdit'GUI2K4.UT2K4Tab_HudSettings.GameHudMessageScale'

     Begin Object Class=moNumericEdit Name=GameHudMessageOffset
         MinValue=0
         MaxValue=4
         ComponentJustification=TXTA_Left
         CaptionWidth=0.700000
         Caption="Message Font Offset"
         OnCreateComponent=GameHudMessageOffset.InternalOnCreateComponent
         IniOption="@Internal"
         Hint="Adjust the size of game messages."
         WinTop=0.436457
         WinLeft=0.550781
         WinWidth=0.381250
         TabOrder=11
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
         OnLoadINI=UT2K4Tab_HudSettings.InternalOnLoadINI
     End Object
     nu_MsgOffset=moNumericEdit'GUI2K4.UT2K4Tab_HudSettings.GameHudMessageOffset'

     Begin Object Class=moCheckBox Name=GameHudVisible
         ComponentJustification=TXTA_Left
         CaptionWidth=0.900000
         Caption="Hide HUD"
         OnCreateComponent=GameHudVisible.InternalOnCreateComponent
         IniOption="@Internal"
         Hint="Hide the HUD while playing"
         WinTop=0.043906
         WinLeft=0.379297
         WinWidth=0.196875
         TabOrder=0
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
         OnLoadINI=UT2K4Tab_HudSettings.InternalOnLoadINI
     End Object
     ch_Visible=moCheckBox'GUI2K4.UT2K4Tab_HudSettings.GameHudVisible'

     Begin Object Class=moCheckBox Name=GameHudShowWeaponInfo
         ComponentJustification=TXTA_Left
         CaptionWidth=0.900000
         Caption="Show Weapon Info"
         OnCreateComponent=GameHudShowWeaponInfo.InternalOnCreateComponent
         IniOption="@Internal"
         Hint="Show current weapon ammunition status."
         WinTop=0.181927
         WinLeft=0.050000
         WinWidth=0.378125
         TabOrder=3
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
         OnLoadINI=UT2K4Tab_HudSettings.InternalOnLoadINI
     End Object
     ch_Weapons=moCheckBox'GUI2K4.UT2K4Tab_HudSettings.GameHudShowWeaponInfo'

     Begin Object Class=moCheckBox Name=GameHudShowPersonalInfo
         ComponentJustification=TXTA_Left
         CaptionWidth=0.900000
         Caption="Show Personal Info"
         OnCreateComponent=GameHudShowPersonalInfo.InternalOnCreateComponent
         IniOption="@Internal"
         Hint="Display health and armor on the HUD."
         WinTop=0.317343
         WinLeft=0.050000
         WinWidth=0.378125
         TabOrder=4
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
         OnLoadINI=UT2K4Tab_HudSettings.InternalOnLoadINI
     End Object
     ch_Personal=moCheckBox'GUI2K4.UT2K4Tab_HudSettings.GameHudShowPersonalInfo'

     Begin Object Class=moCheckBox Name=GameHudShowScore
         ComponentJustification=TXTA_Left
         CaptionWidth=0.900000
         Caption="Show Score"
         OnCreateComponent=GameHudShowScore.InternalOnCreateComponent
         IniOption="@Internal"
         Hint="Check to show scores on the HUD"
         WinTop=0.452760
         WinLeft=0.050000
         WinWidth=0.378125
         TabOrder=5
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
         OnLoadINI=UT2K4Tab_HudSettings.InternalOnLoadINI
     End Object
     ch_Score=moCheckBox'GUI2K4.UT2K4Tab_HudSettings.GameHudShowScore'

     Begin Object Class=moCheckBox Name=GameHudShowWeaponBar
         ComponentJustification=TXTA_Left
         CaptionWidth=0.900000
         Caption="Weapon Bar"
         OnCreateComponent=GameHudShowWeaponBar.InternalOnCreateComponent
         IniOption="@Internal"
         Hint="Select whether the weapons bar should appear on the HUD"
         WinTop=0.598593
         WinLeft=0.050000
         WinWidth=0.378125
         TabOrder=2
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
         OnLoadINI=UT2K4Tab_HudSettings.InternalOnLoadINI
     End Object
     ch_WeaponBar=moCheckBox'GUI2K4.UT2K4Tab_HudSettings.GameHudShowWeaponBar'

     Begin Object Class=moCheckBox Name=GameHudShowPortraits
         ComponentJustification=TXTA_Left
         CaptionWidth=0.900000
         Caption="Show Portraits"
         OnCreateComponent=GameHudShowPortraits.InternalOnCreateComponent
         IniOption="@Internal"
         Hint="Display player portraits when text messages are received"
         WinTop=0.723594
         WinLeft=0.050000
         WinWidth=0.378125
         TabOrder=6
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
         OnLoadINI=UT2K4Tab_HudSettings.InternalOnLoadINI
     End Object
     ch_Portraits=moCheckBox'GUI2K4.UT2K4Tab_HudSettings.GameHudShowPortraits'

     Begin Object Class=moCheckBox Name=GameHUDShowVCPortraits
         ComponentJustification=TXTA_Left
         CaptionWidth=0.900000
         Caption="Show VoIP Portraits"
         OnCreateComponent=GameHUDShowVCPortraits.InternalOnCreateComponent
         IniOption="@Internal"
         Hint="Display player portraits when voice chat messages are received"
         WinTop=0.723594
         WinLeft=0.050000
         WinWidth=0.378125
         TabOrder=7
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
         OnLoadINI=UT2K4Tab_HudSettings.InternalOnLoadINI
     End Object
     ch_VCPortraits=moCheckBox'GUI2K4.UT2K4Tab_HudSettings.GameHUDShowVCPortraits'

     Begin Object Class=moCheckBox Name=GameDeathMsgs
         ComponentJustification=TXTA_Left
         CaptionWidth=0.900000
         Caption="No Console Death Messages"
         OnCreateComponent=GameDeathMsgs.InternalOnCreateComponent
         IniOption="@Internal"
         IniDefault="False"
         Hint="Turn off reporting of death messages in console"
         WinTop=0.847553
         WinLeft=0.047460
         WinWidth=0.403711
         TabOrder=8
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
         OnLoadINI=UT2K4Tab_HudSettings.InternalOnLoadINI
     End Object
     ch_DeathMsgs=moCheckBox'GUI2K4.UT2K4Tab_HudSettings.GameDeathMsgs'

     Begin Object Class=moCheckBox Name=GameHudShowEnemyNames
         ComponentJustification=TXTA_Left
         CaptionWidth=0.900000
         Caption="Show Enemy Names"
         OnCreateComponent=GameHudShowEnemyNames.InternalOnCreateComponent
         IniOption="@Internal"
         Hint="Display enemies' names above their heads"
         WinTop=0.848594
         WinLeft=0.050000
         WinWidth=0.378125
         TabOrder=1
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
         OnLoadINI=UT2K4Tab_HudSettings.InternalOnLoadINI
     End Object
     ch_EnemyNames=moCheckBox'GUI2K4.UT2K4Tab_HudSettings.GameHudShowEnemyNames'

     Begin Object Class=moCheckBox Name=CustomHUDColor
         ComponentJustification=TXTA_Left
         CaptionWidth=0.900000
         Caption="Custom HUD Color"
         OnCreateComponent=CustomHUDColor.InternalOnCreateComponent
         IniOption="@Internal"
         Hint="Use configured HUD color instead of team colors"
         WinTop=0.481406
         WinLeft=0.555313
         WinWidth=0.373749
         TabOrder=14
         OnChange=UT2K4Tab_HudSettings.InternalOnChange
         OnLoadINI=UT2K4Tab_HudSettings.InternalOnLoadINI
     End Object
     ch_CustomColor=moCheckBox'GUI2K4.UT2K4Tab_HudSettings.CustomHUDColor'

     Begin Object Class=GUIComboBox Name=CustomHUDSelect
         bReadOnly=Wahr
         Hint="To configure settings specific to a particular gametype, select the gametype from the list, then click the button to open the menu."
         WinTop=0.878722
         WinLeft=0.553579
         WinWidth=0.227863
         WinHeight=0.030000
         TabOrder=18
         OnKeyEvent=CustomHUDSelect.InternalOnKeyEvent
     End Object
     co_CustomHUD=GUIComboBox'GUI2K4.UT2K4Tab_HudSettings.CustomHUDSelect'

     Begin Object Class=GUIButton Name=CustomHUDButton
         Caption="Configure"
         Hint="Opens the custom HUD configuration menu for the specified gametype."
         WinTop=0.869032
         WinLeft=0.792737
         WinWidth=0.138577
         WinHeight=0.050000
         TabOrder=19
         OnClick=UT2K4Tab_HudSettings.InternalOnClick
         OnKeyEvent=CustomHUDButton.InternalOnKeyEvent
     End Object
     b_CustomHUD=GUIButton'GUI2K4.UT2K4Tab_HudSettings.CustomHUDButton'

     DefaultBGPos=(X1=0.749335,Y1=0.167488,X2=0.163437,Y2=0.121797)
     DefaultHealthPos=(X1=0.748164,Y1=0.169572,X2=0.063241,Y2=0.099531)
     PanelCaption="HUD"
     WinTop=0.150000
     WinHeight=0.740000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Mo 16.4.2007 11:20:35.609 - Created with UnCodeX