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

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

Variables Summary
boolbDebugPriority
boolbDebugScale
boolbDebugWeapon
boolbSwap
boolbWeaponCrosshair
GUIGFXButtonb_Down
GUIGFXButtonb_Up
colorcCrosshair
moCheckboxch_ClassicModel
moCheckboxch_Swap
moCheckboxch_WeaponCrosshair
moComboBoxco_Crosshair
floatfScale
stringHiddenText
intiCrosshair
GUISectionBackgroundi_BG
GUISectionBackgroundi_BG2
GUISectionBackgroundi_BG3
GUIImagei_Bk
GUIImagei_Crosshair
GUIImagei_CrosshairBG
GUIImagei_Shadow
GUIScrollTextBoxlb_Desc
GUIListBoxlb_Weapons
stringLoadingText
floatMaxCrosshairHeight
floatMaxCrosshairWidth
moSlidersl_Alpha
moSlidersl_Blue
moSlidersl_CrosshairScale
moSlidersl_Green
moSlidersl_Red
SpinnyWeapSpinnyWeap
intWeaponIndex
array<WeapItem>WeaponsList
UT2K4Tab_WeaponPref
vectorSpinnyWeapOffset
Inherited Variables from GUI2K4.Settings_Tabs
bAlwaysApply, bExpert, bNeedApply, PerformanceWarningMenu, PerformanceWarningText, Setting, t_Footer, WarningCounter, WarningLength

Structures Summary
WeapItem
WeapClass, WeapPriority, CrosshairIndex, bAltFireMode, bClassicModel, CustomColor, CrosshairScale

Functions Summary
functionbool ChangePriority (GUIComponent Sender)
event Closed (GUIComponent Sender, bool bCancelled)
functionint CompareWeaponPriority (GUIListElem ElemA, GUIListElem ElemB)
functionbool CoolOnKeyEvent (out byte Key, out byte State, float delta)
functionint FindTextureIndex (texture WeapTexture)
functionint FindTextureNameIndex (string TextureName)
functionint FindWeaponListIndex ()
functionint FindWeaponListIndexAt (int Index)
event Free ()
functionTexture GetTexture (int i)
function InitComponent (GUIController MyController, GUIComponent MyOwner)
function InternalDraw (Canvas canvas)
function InternalOnChange (GUIComponent Sender)
function InternalOnLoadINI (GUIComponent Sender, string s)
functionstring InternalOnSaveINI (GUIComponent Sender)
function IntializeWeaponList ()
function LogSpinnyWeap ()
function LogWeapScale ()
event Opened (GUIComponent Sender)
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 ()
Inherited Functions from GUI2K4.Settings_Tabs
AcceptClicked, Closed, DrawPerfWarn, GetNativeClassName, InitComponent, InternalOnChange, Opened, ResetClicked, SaveSettings, ShowPanel, ShowPerformanceWarning, Timer


Variables Detail

bDebugPriority Source code

var config bool bDebugPriority;

bDebugScale Source code

var config bool bDebugScale;

bDebugWeapon Source code

var config bool bDebugWeapon;

bSwap Source code

var bool bSwap;

bWeaponCrosshair Source code

var bool bWeaponCrosshair;

b_Down Source code

var automated GUIGFXButton b_Down;

b_Up Source code

var automated GUIGFXButton b_Up;

cCrosshair Source code

var color cCrosshair;

ch_ClassicModel Source code

var automated moCheckbox ch_ClassicModel;

ch_Swap Source code

var automated moCheckbox ch_Swap;

ch_WeaponCrosshair Source code

var automated moCheckbox ch_WeaponCrosshair;

co_Crosshair Source code

var automated moComboBox co_Crosshair;

fScale Source code

var float fScale;

HiddenText Source code

var localized string HiddenText;

iCrosshair Source code

var int iCrosshair;

i_BG Source code

var automated GUISectionBackground i_BG;

i_BG2 Source code

var automated GUISectionBackground i_BG2;

i_BG3 Source code

var automated GUISectionBackground i_BG3;

i_Bk Source code

var automated GUIImage i_Bk;

i_Crosshair Source code

var automated GUIImage i_Crosshair;

i_CrosshairBG Source code

var automated GUIImage i_CrosshairBG;

i_Shadow Source code

var automated GUIImage i_Shadow;

lb_Desc Source code

var automated GUIScrollTextBox lb_Desc;

lb_Weapons Source code

var automated GUIListBox lb_Weapons;

LoadingText Source code

var localized string LoadingText;

MaxCrosshairHeight Source code

var float MaxCrosshairHeight;

MaxCrosshairWidth Source code

var float MaxCrosshairWidth;

sl_Alpha Source code

var automated moSlider sl_Alpha;

sl_Blue Source code

var automated moSlider sl_Blue;

sl_CrosshairScale Source code

var automated moSlider sl_CrosshairScale;

sl_Green Source code

var automated moSlider sl_Green;

sl_Red Source code

var automated moSlider sl_Red;

SpinnyWeap Source code

var SpinnyWeap SpinnyWeap;

WeaponIndex Source code

var int WeaponIndex;

WeaponsList Source code

var array<WeapItem> WeaponsList;

UT2K4Tab_WeaponPref

SpinnyWeapOffset Source code

var(UT2K4Tab_WeaponPref) vector SpinnyWeapOffset;


Structures Detail

WeapItem Source code

struct WeapItem
{
var bool bAltFireMode;
var bool bClassicModel;
var int CrosshairIndex;
var float CrosshairScale;
var color CustomColor;
var class<Weapon> WeapClass;
var int WeapPriority;
};



Functions Detail

ChangePriority Source code

function bool ChangePriority ( GUIComponent Sender )

Closed Source code

event Closed ( GUIComponent Sender, bool bCancelled )

CompareWeaponPriority Source code

function int CompareWeaponPriority ( GUIListElem ElemA, GUIListElem ElemB )

CoolOnKeyEvent Source code

function bool CoolOnKeyEvent ( out byte Key, out byte State, float delta )

FindTextureIndex Source code

function int FindTextureIndex ( texture WeapTexture )

FindTextureNameIndex Source code

function int FindTextureNameIndex ( string TextureName )

FindWeaponListIndex Source code

function int FindWeaponListIndex ( )

FindWeaponListIndexAt Source code

function int FindWeaponListIndexAt ( int Index )

Free Source code

event Free ( )

GetTexture Source code

function Texture GetTexture ( int i )

InitComponent Source code

function InitComponent ( GUIController MyController, GUIComponent MyOwner )

InternalDraw Source code

function InternalDraw ( Canvas canvas )

InternalOnChange Source code

function InternalOnChange ( GUIComponent Sender )

InternalOnLoadINI Source code

function InternalOnLoadINI ( GUIComponent Sender, string s )

InternalOnSaveINI Source code

function string InternalOnSaveINI ( GUIComponent Sender )

IntializeWeaponList Source code

function IntializeWeaponList ( )

LogSpinnyWeap Source code

function LogSpinnyWeap ( )

LogWeapScale Source code

function LogWeapScale ( )

Opened Source code

event Opened ( GUIComponent Sender )

ReallyInitializeWeaponList Source code

function ReallyInitializeWeaponList ( Canvas C )

ResetClicked Source code

function ResetClicked ( )

SaveSettings Source code

function SaveSettings ( )

SetCrossHairGraphic Source code

function SetCrossHairGraphic ( int Index )

ShowPanel Source code

function ShowPanel ( bool bShow )

SwapWeapons Source code

function SwapWeapons ( int OriginalLoc, int NewLoc )

UpdateCrosshairColor Source code

function UpdateCrosshairColor ( )

UpdateCurrentWeapon Source code

function UpdateCurrentWeapon ( )

WeaponListInitialized Source code

function WeaponListInitialized ( )


Defaultproperties

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
}

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