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

XInterface.Tab_ControlSettings

Extends
UT2K3TabPanel

Core.Object
|   
+-- XInterface.GUI
   |   
   +-- XInterface.GUIComponent
      |   
      +-- XInterface.GUIMultiComponent
         |   
         +-- XInterface.GUIPanel
            |   
            +-- XInterface.GUITabPanel
               |   
               +-- XInterface.UT2K3TabPanel
                  |   
                  +-- XInterface.Tab_ControlSettings

Direct Known Subclasses:

Tab_SpeechBinder

Constants Summary
DefaultBindings=54

Variables Summary
array<KeyBinding>Bindings
ColorBkColor
boolbListInitialised
boolbSetNextKeyPress
stringFooter
intHackIndex
stringHeader
array<string>Labels
GUIListBoxMyListBox
intNewIndex
intNewSubIndex
introw
floatSectionLabelMargin
GUIStylesSelStyle
Inherited Variables from XInterface.GUITabPanel
bFillHeight, FadeInTime, MyButton, PanelCaption

Structures Summary
KeyBinding
bIsSectionLabel, KeyLabel, Alias, Binds, BindKeyNames, BindLocalizedKeyNames

Functions Summary
function AddNewKey (int Index, int SubIndex, byte NewKey))
function AddToBindings (string Alias, string KeyLabel, bool bSectionLabel))
function DrawBinding (Canvas Canvas, int Item, float X, float Y, float W, float H, bool bSelected, bool bPending))
functionstring GetCurrentKeyBind (int index, int bind))
functionbool GetNewKey (GUIComponent Sender))
function InitBindings ()))
function InitComponent (GUIController MyController, GUIComponent MyOwner))
function ListChange (GUIComponent Sender))
functionbool ListOnKeyEvent (out byte Key, out byte State, float delta))
function MyOnAdjustTop (GUIComponent Sender))
functionbool RawKey (byte NewKey))
function RemoveAllOccurance (byte NewKey))
function RemoveExistingKey (int Index, int SubIndex))
functionbool ResetClicked (GUIComponent Sender))
function SearchDown (int OldIndex))
function SearchUp (int OldIndex))
function ShowPanel (bool bShow))
function Swap (int index, int a, int b))
function UpdateHint (int index))
functionint Weight (int i))
Inherited Functions from XInterface.GUITabPanel
CanShowPanel, Free, InitPanel, OnDestroyPanel, Refresh, ShowPanel


Constants Detail

DefaultBindings Source code

const DefaultBindings = 54;


Variables Detail

Bindings Source code

var array<KeyBinding> Bindings;

BkColor Source code

var Color BkColor;

bListInitialised Source code

var bool bListInitialised;

bSetNextKeyPress Source code

var bool bSetNextKeyPress;

Footer Source code

var localized string Footer;

HackIndex Source code

var int HackIndex;

Header Source code

var localized string Header;

Labels Source code

var localized array<string> Labels;

MyListBox Source code

var GUIListBox MyListBox;

NewIndex Source code

var int NewIndex;

NewSubIndex Source code

var int NewSubIndex;

row Source code

var int row;

SectionLabelMargin Source code

var float SectionLabelMargin;

SelStyle Source code

var GUIStyles SelStyle;


Structures Detail

KeyBinding Source code

struct KeyBinding
{
var string Alias;
var array<string> BindKeyNames;
var array<string> BindLocalizedKeyNames;
var array<int> Binds;
var bool bIsSectionLabel;
var localized string KeyLabel;
};



Functions Detail

AddNewKey Source code

function AddNewKey ( int Index, int SubIndex, byte NewKey) )

AddToBindings Source code

function AddToBindings ( string Alias, string KeyLabel, bool bSectionLabel) )

DrawBinding Source code

function DrawBinding ( Canvas Canvas, int Item, float X, float Y, float W, float H, bool bSelected, bool bPending) )

GetCurrentKeyBind Source code

function string GetCurrentKeyBind ( int index, int bind) )

GetNewKey Source code

function bool GetNewKey ( GUIComponent Sender) )

InitBindings Source code

function InitBindings ( ) )

InitComponent Source code

function InitComponent ( GUIController MyController, GUIComponent MyOwner) )

ListChange Source code

function ListChange ( GUIComponent Sender) )

ListOnKeyEvent Source code

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

MyOnAdjustTop Source code

function MyOnAdjustTop ( GUIComponent Sender) )

RawKey Source code

function bool RawKey ( byte NewKey) )

RemoveAllOccurance Source code

function RemoveAllOccurance ( byte NewKey) )

RemoveExistingKey Source code

function RemoveExistingKey ( int Index, int SubIndex) )

ResetClicked Source code

function bool ResetClicked ( GUIComponent Sender) )

SearchDown Source code

function SearchDown ( int OldIndex) )

SearchUp Source code

function SearchUp ( int OldIndex) )

ShowPanel Source code

function ShowPanel ( bool bShow) )

Swap Source code

function Swap ( int index, int a, int b) )

UpdateHint Source code

function UpdateHint ( int index) )

Weight Source code

function int Weight ( int i) )


Defaultproperties

defaultproperties
{
     BkColor=(B=100,G=24,R=24,A=200)
     Bindings(0)=(bIsSectionLabel=True,KeyLabel="Movement")
     Bindings(1)=(KeyLabel="Forward",Alias="MoveForward")
     Bindings(2)=(KeyLabel="Backward",Alias="MoveBackward")
     Bindings(3)=(KeyLabel="Strafe Left",Alias="StrafeLeft")
     Bindings(4)=(KeyLabel="Strafe Right",Alias="StrafeRight")
     Bindings(5)=(KeyLabel="Jump",Alias="Jump")
     Bindings(6)=(KeyLabel="Walk",Alias="Walking")
     Bindings(7)=(KeyLabel="Crouch",Alias="Duck")
     Bindings(8)=(KeyLabel="Strafe Toggle",Alias="Strafe")
     Bindings(9)=(bIsSectionLabel=True,KeyLabel="Looking")
     Bindings(10)=(KeyLabel="Turn Left",Alias="TurnLeft")
     Bindings(11)=(KeyLabel="Turn Right",Alias="TurnRight")
     Bindings(12)=(KeyLabel="Look Up",Alias="LookUp")
     Bindings(13)=(KeyLabel="Look Down",Alias="LookDown")
     Bindings(14)=(KeyLabel="Center View",Alias="CenterView")
     Bindings(15)=(bIsSectionLabel=True,KeyLabel="Weapons")
     Bindings(16)=(KeyLabel="Fire",Alias="Fire")
     Bindings(17)=(KeyLabel="Alt-Fire",Alias="AltFire")
     Bindings(18)=(KeyLabel="Throw Weapon",Alias="ThrowWeapon")
     Bindings(19)=(KeyLabel="Best Weapon",Alias="SwitchToBestWeapon")
     Bindings(20)=(KeyLabel="Next Weapon",Alias="NextWeapon")
     Bindings(21)=(KeyLabel="Prev Weapon",Alias="PrevWeapon")
     Bindings(22)=(KeyLabel="Last Weapon",Alias="SwitchToLastWeapon")
     Bindings(23)=(bIsSectionLabel=True,KeyLabel="Weapon Selection")
     Bindings(24)=(KeyLabel="Super Weapon",Alias="SwitchWeapon 0")
     Bindings(25)=(KeyLabel="Shield Gun",Alias="SwitchWeapon 1")
     Bindings(26)=(KeyLabel="Assault Rifle",Alias="SwitchWeapon 2")
     Bindings(27)=(KeyLabel="Bio-Rifle",Alias="SwitchWeapon 3")
     Bindings(28)=(KeyLabel="Shock Rifle",Alias="SwitchWeapon 4")
     Bindings(29)=(KeyLabel="Link Gun",Alias="SwitchWeapon 5")
     Bindings(30)=(KeyLabel="Minigun",Alias="SwitchWeapon 6")
     Bindings(31)=(KeyLabel="Flak Cannon",Alias="SwitchWeapon 7")
     Bindings(32)=(KeyLabel="Rocket Launcher",Alias="SwitchWeapon 8")
     Bindings(33)=(KeyLabel="Lightning Rifle",Alias="SwitchWeapon 9")
     Bindings(34)=(KeyLabel="Translocator",Alias="SwitchWeapon 10")
     Bindings(35)=(bIsSectionLabel=True,KeyLabel="Communication")
     Bindings(36)=(KeyLabel="Say",Alias="Talk")
     Bindings(37)=(KeyLabel="Team Say",Alias="TeamTalk")
     Bindings(38)=(KeyLabel="Speech Menu",Alias="SpeechMenuToggle")
     Bindings(39)=(bIsSectionLabel=True,KeyLabel="Taunts")
     Bindings(40)=(KeyLabel="Pelvic Thrust",Alias="taunt pthrust")
     Bindings(41)=(KeyLabel="Ass Smack",Alias="taunt asssmack")
     Bindings(42)=(KeyLabel="Throat Cut",Alias="taunt throatcut")
     Bindings(43)=(bIsSectionLabel=True,KeyLabel="Hud")
     Bindings(44)=(KeyLabel="Grow Hud",Alias="GrowHud")
     Bindings(45)=(KeyLabel="Shrink Hud",Alias="ShrinkHud")
     Bindings(46)=(bIsSectionLabel=True,KeyLabel="Miscellaneous")
     Bindings(47)=(KeyLabel="Pause",Alias="Pause")
     Bindings(48)=(KeyLabel="Screenshot",Alias="shot")
     Bindings(49)=(KeyLabel="Menu",Alias="ShowMenu")
     Bindings(50)=(KeyLabel="ScoreBoard",Alias="ShowScores")
     Bindings(51)=(KeyLabel="ScoreBoard Toggle",Alias="ScoreToggle")
     Bindings(52)=(KeyLabel="In Game Chat",Alias="InGameChat")
     Bindings(53)=(KeyLabel="Server Info",Alias="ServerInfo")
     Labels(0)="Movement"
     Labels(1)="Forward"
     Labels(2)="Backward"
     Labels(3)="Strafe Left"
     Labels(4)="Strafe Right"
     Labels(5)="Jump"
     Labels(6)="Walk"
     Labels(7)="Crouch"
     Labels(8)="Strafe Toggle"
     Labels(9)="Looking"
     Labels(10)="Turn Left"
     Labels(11)="Turn Right"
     Labels(12)="Look Up"
     Labels(13)="Look Down"
     Labels(14)="Center View"
     Labels(15)="Weapons"
     Labels(16)="Fire"
     Labels(17)="Alt-Fire"
     Labels(18)="Throw Weapon"
     Labels(19)="Best Weapon"
     Labels(20)="Next Weapon"
     Labels(21)="Prev Weapon"
     Labels(22)="Last Weapon"
     Labels(23)="Weapon Selection"
     Labels(24)="Super Weapon"
     Labels(25)="Shield Gun"
     Labels(26)="Assault Rifle"
     Labels(27)="Bio-Rifle"
     Labels(28)="Shock Rifle"
     Labels(29)="Link Gun"
     Labels(30)="Minigun"
     Labels(31)="Flak Cannon"
     Labels(32)="Rocket Launcher"
     Labels(33)="Lightning Rifle"
     Labels(34)="Translocator"
     Labels(35)="Communication"
     Labels(36)="Say"
     Labels(37)="Team Say"
     Labels(38)="Speech Menu"
     Labels(39)="Taunts"
     Labels(40)="Pelvic Thrust"
     Labels(41)="Ass Smack"
     Labels(42)="Throat Cut"
     Labels(43)="Hud"
     Labels(44)="Grow Hud"
     Labels(45)="Shrink Hud"
     Labels(46)="Miscellaneous"
     Labels(47)="Pause"
     Labels(48)="Screenshot"
     Labels(49)="Menu"
     Labels(50)="ScoreBoard"
     Labels(51)="ScoreBoard Toggle"
     Labels(52)="In Game Chat"
     Labels(53)="Server Info"
     Header="["
     Footer="] Perform this action "
     SectionLabelMargin=10.000000
     Begin Object Class=GUIListBox Name=KeyConfigKeyList
         bVisibleWhenEmpty=True
         OnCreateComponent=KeyConfigKeyList.InternalOnCreateComponent
         StyleName="BindBox"
         Hint="Select Control to config"
         WinTop=0.094218
         WinLeft=0.027188
         WinWidth=0.929493
         WinHeight=0.820040
     End Object
     Controls(0)=GUIListBox'XInterface.Tab_ControlSettings.KeyConfigKeyList'


     Begin Object Class=GUIImage Name=KeyConfigBK1
         Image=Texture'InterfaceContent.Menu.BorderBoxD'
         ImageColor=(A=160)
         ImageStyle=ISTY_Stretched
         WinTop=0.083281
         WinLeft=0.021641
         WinWidth=0.431248
         WinHeight=0.834063
         bAcceptsInput=True
         bNeverFocus=True
     End Object
     Controls(1)=GUIImage'XInterface.Tab_ControlSettings.KeyConfigBK1'


     Begin Object Class=GUIImage Name=KeyConfigBK2
         Image=Texture'InterfaceContent.Menu.BorderBoxD'
         ImageColor=(A=160)
         ImageStyle=ISTY_Stretched
         WinTop=0.083281
         WinLeft=0.460078
         WinWidth=0.230937
         WinHeight=0.834063
     End Object
     Controls(2)=GUIImage'XInterface.Tab_ControlSettings.KeyConfigBK2'


     Begin Object Class=GUIImage Name=KeyConfigBK3
         Image=Texture'InterfaceContent.Menu.BorderBoxD'
         ImageColor=(A=160)
         ImageStyle=ISTY_Stretched
         WinTop=0.083281
         WinLeft=0.688828
         WinWidth=0.232499
         WinHeight=0.834063
     End Object
     Controls(3)=GUIImage'XInterface.Tab_ControlSettings.KeyConfigBK3'


     Begin Object Class=GUILabel Name=KeyConfigAliasLabel
         Caption="Action"
         TextAlign=TXTA_Center
         TextColor=(B=255,G=255,R=255)
         TextFont="UT2HeaderFont"
         WinTop=0.004167
         WinLeft=0.124414
         WinWidth=0.250000
         WinHeight=32.000000
     End Object
     Controls(4)=GUILabel'XInterface.Tab_ControlSettings.KeyConfigAliasLabel'


     Begin Object Class=GUILabel Name=KeyConfigAliasLabel2
         Caption="Key 1"
         TextAlign=TXTA_Center
         TextColor=(B=255,G=255,R=255)
         TextFont="UT2HeaderFont"
         WinTop=0.004167
         WinLeft=0.449414
         WinWidth=0.250000
         WinHeight=32.000000
     End Object
     Controls(5)=GUILabel'XInterface.Tab_ControlSettings.KeyConfigAliasLabel2'


     Begin Object Class=GUILabel Name=KeyConfigAliasLabel3
         Caption="Key 2"
         TextAlign=TXTA_Center
         TextColor=(B=255,G=255,R=255)
         TextFont="UT2HeaderFont"
         WinTop=0.004167
         WinLeft=0.686914
         WinWidth=0.250000
         WinHeight=32.000000
     End Object
     Controls(6)=GUILabel'XInterface.Tab_ControlSettings.KeyConfigAliasLabel3'


     Begin Object Class=GUIButton Name=KeyResetButton
         Caption="RESET"
         StyleName="SquareMenuButton"
         Hint="Reset keys to default values"
         WinTop=0.933333
         WinLeft=0.687500
         WinWidth=0.231250
         WinHeight=0.068750
         OnClick=Tab_ControlSettings.ResetClicked
         OnKeyEvent=KeyResetButton.InternalOnKeyEvent
     End Object
     Controls(7)=GUIButton'XInterface.Tab_ControlSettings.KeyResetButton'


     WinTop=0.150000
     WinHeight=0.740000
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: sk 18-3-2018 09:49:53.308 - Created with UnCodeX