GUI2K4.UT2K4Tab_WeaponPref
- Extends
- Settings_Tabs
Core.Object
|
+-- XInterface.GUI
|
+-- XInterface.GUIComponent
|
+-- XInterface.GUIMultiComponent
|
+-- XInterface.GUIPanel
|
+-- XInterface.GUITabPanel
|
+-- XInterface.UT2K4TabPanel
|
+-- GUI2K4.Settings_Tabs
|
+-- GUI2K4.UT2K4Tab_WeaponPref
Structures Summary |
WeapItem WeapClass, WeapPriority, CrosshairIndex, bAltFireMode, bClassicModel, CustomColor, CrosshairScale |
Inherited Functions from GUI2K4.Settings_Tabs |
AcceptClicked, Closed, DrawPerfWarn, GetNativeClassName, InitComponent, InternalOnChange, Opened, ResetClicked, SaveSettings, ShowPanel, ShowPerformanceWarning, Timer |
var config bool bDebugPriority;
var config bool bDebugScale;
var config bool bDebugWeapon;
var bool bSwap;
var bool bWeaponCrosshair;
var float fScale;
var localized string HiddenText;
var int iCrosshair;
var localized string LoadingText;
var float MaxCrosshairHeight;
var float MaxCrosshairWidth;
var automated
moSlider sl_CrosshairScale;
var int WeaponIndex;
UT2K4Tab_WeaponPref
struct WeapItem
{
var bool bAltFireMode;
var bool bClassicModel;
var int CrosshairIndex;
var float CrosshairScale;
var color CustomColor;
var class<Weapon> WeapClass;
var int WeapPriority;
};
function bool CoolOnKeyEvent ( out byte Key, out byte State, float delta )
function int FindTextureIndex (
texture WeapTexture )
function int FindTextureNameIndex ( string TextureName )
function int FindWeaponListIndex ( )
function int FindWeaponListIndexAt ( int Index )
event Free ( )
function Texture GetTexture (
int i )
function InternalOnLoadINI (
GUIComponent Sender,
string s )
function IntializeWeaponList ( )
function LogSpinnyWeap ( )
function LogWeapScale ( )
ReallyInitializeWeaponList Source code
function ReallyInitializeWeaponList (
Canvas C )
function ResetClicked ( )
function SaveSettings ( )
function SetCrossHairGraphic ( int Index )
function ShowPanel ( bool bShow )
function SwapWeapons ( int OriginalLoc, int NewLoc )
function UpdateCrosshairColor ( )
function UpdateCurrentWeapon ( )
function WeaponListInitialized ( )
defaultproperties
{
Begin Object Class=GUISectionBackground Name=WeaponBK
Caption="Weapon"
WinTop=0.033334
WinLeft=0.031641
WinWidth=0.424999
WinHeight=0.611250
OnPreDraw=WeaponBK.InternalPreDraw
End Object
i_BG=GUISectionBackground'GUI2K4.UT2K4Tab_WeaponPref.WeaponBK'
Begin Object Class=GUISectionBackground Name=WeaponPriorityBK
bFillClient=True
Caption="Weapon Priorities"
LeftPadding=0.000000
RightPadding=0.000000
WinTop=0.666667
WinLeft=0.046588
WinWidth=0.380157
WinHeight=0.311250
OnPreDraw=WeaponPriorityBK.InternalPreDraw
End Object
i_BG2=GUISectionBackground'GUI2K4.UT2K4Tab_WeaponPref.WeaponPriorityBK'
Begin Object Class=GUISectionBackground Name=WeaponOptionBK
Caption="Crosshairs"
BottomPadding=0.300000
WinTop=0.033334
WinLeft=0.481641
WinWidth=0.493749
WinHeight=0.942501
OnPreDraw=WeaponOptionBK.InternalPreDraw
End Object
i_BG3=GUISectionBackground'GUI2K4.UT2K4Tab_WeaponPref.WeaponOptionBK'
Begin Object Class=GUIImage Name=GameCrossHairImage
ImageStyle=ISTY_Scaled
ImageAlign=IMGA_Center
X1=0
Y1=0
X2=64
Y2=64
WinTop=0.818914
WinLeft=0.884109
WinWidth=0.139453
WinHeight=0.231445
RenderWeight=0.550000
End Object
i_Crosshair=GUIImage'GUI2K4.UT2K4Tab_WeaponPref.GameCrossHairImage'
Begin Object Class=GUIImage Name=CrosshairBK
Image=Texture'2K4Menus.Controls.buttonSquare_b'
DropShadow=Texture'2K4Menus.Controls.Shadow'
ImageStyle=ISTY_Stretched
DropShadowX=4
DropShadowY=4
WinTop=0.703192
WinLeft=0.814333
WinWidth=0.139453
WinHeight=0.231445
RenderWeight=0.520000
End Object
i_CrosshairBG=GUIImage'GUI2K4.UT2K4Tab_WeaponPref.CrosshairBK'
Begin Object Class=GUIImage Name=Bk1
Image=Texture'2K4Menus.NewControls.Display99'
ImageStyle=ISTY_Stretched
WinTop=0.300814
WinLeft=0.046344
WinWidth=0.394118
WinHeight=0.324981
End Object
i_bk=GUIImage'GUI2K4.UT2K4Tab_WeaponPref.Bk1'
Begin Object Class=GUIGFXButton Name=WeaponPrefWeapUp
ImageIndex=6
Position=ICP_Scaled
StyleName="ComboButton"
Hint="Increase the priority this weapon will have when picking your best weapon."
WinTop=0.773389
WinLeft=0.419847
WinWidth=0.028946
WinHeight=0.038594
RenderWeight=0.510000
TabOrder=2
bNeverFocus=True
bRepeatClick=True
OnClickSound=CS_Up
OnClick=UT2K4Tab_WeaponPref.ChangePriority
OnKeyEvent=WeaponPrefWeapUp.InternalOnKeyEvent
End Object
b_Up=GUIGFXButton'GUI2K4.UT2K4Tab_WeaponPref.WeaponPrefWeapUp'
Begin Object Class=GUIGFXButton Name=WeaponPrefWeapDown
ImageIndex=7
Position=ICP_Scaled
StyleName="ComboButton"
Hint="Decrease the priority this weapon will have when picking your best weapon."
WinTop=0.817619
WinLeft=0.419847
WinWidth=0.028946
WinHeight=0.038594
RenderWeight=0.510000
TabOrder=3
bNeverFocus=True
bRepeatClick=True
OnClickSound=CS_Down
OnClick=UT2K4Tab_WeaponPref.ChangePriority
OnKeyEvent=WeaponPrefWeapDown.InternalOnKeyEvent
End Object
b_Down=GUIGFXButton'GUI2K4.UT2K4Tab_WeaponPref.WeaponPrefWeapDown'
Begin Object Class=GUIListBox Name=WeaponPrefWeapList
bVisibleWhenEmpty=True
OnCreateComponent=WeaponPrefWeapList.InternalOnCreateComponent
IniOption="@Internal"
Hint="Select order for weapons"
WinTop=0.733868
WinLeft=0.068546
WinWidth=0.338338
WinHeight=0.221055
RenderWeight=0.510000
TabOrder=1
OnChange=UT2K4Tab_WeaponPref.InternalOnChange
OnSaveINI=UT2K4Tab_WeaponPref.InternalOnSaveINI
End Object
lb_Weapons=GUIListBox'GUI2K4.UT2K4Tab_WeaponPref.WeaponPrefWeapList'
Begin Object Class=GUIScrollTextBox Name=WeaponDescription
CharDelay=0.001500
EOLDelay=0.250000
bVisibleWhenEmpty=True
OnCreateComponent=WeaponDescription.InternalOnCreateComponent
FontScale=FNS_Small
WinTop=0.378073
WinLeft=0.063125
WinWidth=0.362170
WinHeight=0.188969
RenderWeight=0.510000
TabOrder=0
bAcceptsInput=False
bNeverFocus=True
End Object
lb_Desc=GUIScrollTextBox'GUI2K4.UT2K4Tab_WeaponPref.WeaponDescription'
Begin Object Class=moCheckBox Name=WeaponSwap
Caption="Swap Fire Mode"
OnCreateComponent=WeaponSwap.InternalOnCreateComponent
Hint="Check this box to swap the firing mode on the selected weapon."
WinTop=0.753946
WinLeft=0.540953
WinWidth=0.225000
WinHeight=0.040000
RenderWeight=1.030000
TabOrder=11
OnChange=UT2K4Tab_WeaponPref.InternalOnChange
End Object
ch_Swap=moCheckBox'GUI2K4.UT2K4Tab_WeaponPref.WeaponSwap'
Begin Object Class=moCheckBox Name=CustomWeaponCrosshair
CaptionWidth=0.900000
Caption="Custom Weapon Crosshairs"
OnCreateComponent=CustomWeaponCrosshair.InternalOnCreateComponent
IniOption="@Internal"
Hint="Enable this option to use weapon-specific crosshairs."
WinTop=0.881445
WinLeft=0.027203
WinWidth=0.463975
WinHeight=0.040000
RenderWeight=1.010000
TabOrder=4
OnChange=UT2K4Tab_WeaponPref.InternalOnChange
OnLoadINI=UT2K4Tab_WeaponPref.InternalOnLoadINI
End Object
ch_WeaponCrosshair=moCheckBox'GUI2K4.UT2K4Tab_WeaponPref.CustomWeaponCrosshair'
Begin Object Class=moCheckBox Name=WeaponMesh
Caption="Classic Model"
OnCreateComponent=WeaponMesh.InternalOnCreateComponent
Hint="Enable to use the classic model for this weapon"
WinTop=0.837279
WinLeft=0.542070
WinWidth=0.224062
WinHeight=0.040000
RenderWeight=1.030000
TabOrder=12
OnChange=UT2K4Tab_WeaponPref.InternalOnChange
End Object
ch_ClassicModel=moCheckBox'GUI2K4.UT2K4Tab_WeaponPref.WeaponMesh'
Begin Object Class=moComboBox Name=GameCrossHair
ComponentJustification=TXTA_Left
CaptionWidth=0.300000
Caption="Crosshair"
OnCreateComponent=GameCrossHair.InternalOnCreateComponent
IniOption="@Internal"
Hint="Please select your crosshair!"
WinTop=0.822936
WinLeft=0.027203
WinWidth=0.463975
WinHeight=0.040000
RenderWeight=1.060000
TabOrder=5
OnChange=UT2K4Tab_WeaponPref.InternalOnChange
OnLoadINI=UT2K4Tab_WeaponPref.InternalOnLoadINI
End Object
co_Crosshair=moComboBox'GUI2K4.UT2K4Tab_WeaponPref.GameCrossHair'
Begin Object Class=moSlider Name=GameHudCrossHairR
MaxValue=255.000000
bIntSlider=True
CaptionWidth=0.300000
Caption="Red:"
LabelColor=(B=0,R=255)
OnCreateComponent=GameHudCrossHairR.InternalOnCreateComponent
IniOption="@Internal"
Hint="Changes the color of your crosshair."
WinTop=0.480822
WinLeft=0.027203
WinWidth=0.644366
RenderWeight=0.550000
TabOrder=6
OnChange=UT2K4Tab_WeaponPref.InternalOnChange
OnLoadINI=UT2K4Tab_WeaponPref.InternalOnLoadINI
End Object
sl_Red=moSlider'GUI2K4.UT2K4Tab_WeaponPref.GameHudCrossHairR'
Begin Object Class=moSlider Name=GameHudCrossHairB
MaxValue=255.000000
bIntSlider=True
CaptionWidth=0.300000
Caption="Blue:"
LabelColor=(B=255)
OnCreateComponent=GameHudCrossHairB.InternalOnCreateComponent
IniOption="@Internal"
Hint="Changes the color of your crosshair."
WinTop=0.609094
WinLeft=0.027203
WinWidth=0.644366
RenderWeight=0.550000
TabOrder=8
OnChange=UT2K4Tab_WeaponPref.InternalOnChange
OnLoadINI=UT2K4Tab_WeaponPref.InternalOnLoadINI
End Object
sl_Blue=moSlider'GUI2K4.UT2K4Tab_WeaponPref.GameHudCrossHairB'
Begin Object Class=moSlider Name=GameHudCrossHairG
MaxValue=255.000000
bIntSlider=True
CaptionWidth=0.300000
Caption="Green:"
LabelColor=(B=0,G=255)
OnCreateComponent=GameHudCrossHairG.InternalOnCreateComponent
IniOption="@Internal"
Hint="Changes the color of your crosshair."
WinTop=0.544958
WinLeft=0.027203
WinWidth=0.644366
RenderWeight=0.550000
TabOrder=7
OnChange=UT2K4Tab_WeaponPref.InternalOnChange
OnLoadINI=UT2K4Tab_WeaponPref.InternalOnLoadINI
End Object
sl_Green=moSlider'GUI2K4.UT2K4Tab_WeaponPref.GameHudCrossHairG'
Begin Object Class=moSlider Name=GameHudCrossHairA
MaxValue=255.000000
bIntSlider=True
CaptionWidth=0.300000
Caption="Opacity:"
LabelColor=(B=255,G=255,R=255)
OnCreateComponent=GameHudCrossHairA.InternalOnCreateComponent
IniOption="@Internal"
Hint="Changes the opacity of your crosshair."
WinTop=0.671927
WinLeft=0.027203
WinWidth=0.644366
RenderWeight=0.550000
TabOrder=9
OnChange=UT2K4Tab_WeaponPref.InternalOnChange
OnLoadINI=UT2K4Tab_WeaponPref.InternalOnLoadINI
End Object
sl_Alpha=moSlider'GUI2K4.UT2K4Tab_WeaponPref.GameHudCrossHairA'
Begin Object Class=moSlider Name=GameHudCrosshairScale
MaxValue=2.000000
CaptionWidth=0.300000
Caption="Scale:"
LabelColor=(B=255,G=255,R=255)
OnCreateComponent=GameHudCrosshairScale.InternalOnCreateComponent
IniOption="@Internal"
Hint="Changes the crosshair scale."
WinTop=0.733124
WinLeft=0.027203
WinWidth=0.644366
RenderWeight=0.550000
TabOrder=10
OnChange=UT2K4Tab_WeaponPref.InternalOnChange
OnLoadINI=UT2K4Tab_WeaponPref.InternalOnLoadINI
End Object
sl_CrosshairScale=moSlider'GUI2K4.UT2K4Tab_WeaponPref.GameHudCrosshairScale'
SpinnyWeapOffset=(X=100.000000,Y=1.500000,Z=-10.000000)
WeaponIndex=-1
MaxCrosshairWidth=0.071922
MaxCrosshairHeight=0.121081
HiddenText="Hidden"
LoadingText="...Loading Weapon Database..."
PanelCaption="Weapons"
WinTop=0.150000
WinHeight=0.740000
OnRendered=UT2K4Tab_WeaponPref.InternalDraw
}
|
Creation time: Wed 7/2/2007 19:16:24.312 - Created with
UnCodeX