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

GUI2K4.KeyBindMenu

Extends
LockedFloatingWindow

Core.Object
|   
+-- XInterface.GUI
   |   
   +-- XInterface.GUIComponent
      |   
      +-- XInterface.GUIMultiComponent
         |   
         +-- XInterface.GUIPage
            |   
            +-- XInterface.UT2K4GUIPage
               |   
               +-- GUI2K4.PopupPageBase
                  |   
                  +-- GUI2K4.FloatingWindow
                     |   
                     +-- GUI2K4.LockedFloatingWindow
                        |   
                        +-- GUI2K4.KeyBindMenu

Direct Known Subclasses:

ControlBinder, SpeechBinder

Variables Summary
GUIImagei_Bk
GUIMultiColumnListBoxlb_Binds
GUIMultiColumnListli_Binds
GUILabell_Hint
KeyBindMenu
stringActionText
InputKeyInfoAllKeys[255]
array<KeyBinding>Bindings
boolbPendingRawInput
stringClearCaption
stringCloseCaption
stringHeadings[3]
intNewIndex
intNewSubIndex
stringPageCaption
stringResetCaption
floatSectionLabelMargin
GUIStylesSectionStyle
stringSectionStyleName
GUIStylesSelStyle
stringSpeechLabel
Inherited Variables from GUI2K4.LockedFloatingWindow
b_Cancel, b_OK, EdgeBorder[4], sb_Main, SubCaption
Inherited Variables from GUI2K4.FloatingWindow
BLSizing, bMoveAllowed, bMoving, bResizeHeightAllowed, bResizeWidthAllowed, bResizing, BRSizing, BtSizing, b_ExitButton, DefaultHeight, DefaultLeft, DefaultTop, DefaultWidth, HeaderMouseCursorIndex, LSizing, MaxPageHeight, MaxPageWidth, MinPageHeight, MinPageWidth, RSizing, TLSizing, TRSizing, TSizing, t_WindowTitle, WindowName

Structures Summary
InputKeyInfo
KeyNumber, KeyName, LocalizedKeyName
KeyBinding
bIsSectionLabel, KeyLabel, Alias, BoundKeys

Functions Summary
functionbool BeginRawInput (GUIComponent Sender))
function BindKeyToAlias (int BindIndex, int KeyIndex ))
function ClearBindings ()))
function CreateAliasMapping (string Command, string FriendlyName, bool bSectionLabel))
function DrawBinding (Canvas Canvas, int Item, float X, float Y, float W, float H, bool bSelected, bool bPending))
functionint FindAliasIndex (string Alias ))
functionstring GetCurrentKeyBind (int BindIndex, int SubIndex))
function InitComponent (GUIController MyController, GUIComponent MyOwner))
function Initialize ()))
function InitializeBindingsArray ()))
functionbool InternalOnClick (GUIComponent Sender))
function InternalOnCreateComponent (GUIComponent NewComp, GUIComponent Sender ))
functionstring ListGetSortString (int Index ))
functionbool ListOnKeyEvent (out byte Key, out byte State, float delta))
function ListTrack (GUIComponent Sender, int LastIndex))
function LoadCommands ()))
function MapBindings ()))
functionbool MouseOnCol1 ()))
functionbool MouseOnCol2 ()))
function OnFadeIn ()))
functionbool RawKey (byte NewKey))
function RemoveAllOccurance (byte NewKey))
function RemoveExistingKey (int Index, int SubIndex))
function SearchDown (int OldIndex))
function SearchUp (int OldIndex))
function SetKeyBind (int Index, int SubIndex, byte NewKey))
function UpdateHint (int BindIndex))
functionbool ValidBindIndex (int Index))
functionbool ValidKeyIndex (int Index))
Inherited Functions from GUI2K4.LockedFloatingWindow
AlignButtons, InitComponent, InternalOnClick, InternalOnCreateComponent
Inherited Functions from GUI2K4.FloatingWindow
AddSystemMenu, AlignFrame, CheckBounds, FloatingHover, FloatingMousePressed, FloatingMouseRelease, FloatingPreDraw, FloatingRendered, HoveringBottomBorder, HoveringBottomLeft, HoveringLeftBorder, HoveringRightBorder, HoveringTopBorder, HoveringTopLeft, InitComponent, InternalOnCreateComponent, ResizeAllowed, ResizedBoth, ResizedHeight, ResizedWidth, ResolutionChanged, SaveCurrentPosition, SetDefaultPosition, SetFocus, SetMouseCursorIndex, SetPanelPosition, SystemMenuPreDraw, XButtonClicked


Variables Detail

i_Bk Source code

var automated GUIImage i_Bk;

lb_Binds Source code

var automated GUIMultiColumnListBox lb_Binds;

li_Binds Source code

var automated GUIMultiColumnList li_Binds;

l_Hint Source code

var automated GUILabel l_Hint;

KeyBindMenu

ActionText Source code

var(KeyBindMenu) localized string ActionText;

AllKeys[255] Source code

var(KeyBindMenu) noexport editconst InputKeyInfo AllKeys[255];

Bindings Source code

var(KeyBindMenu) array<KeyBinding> Bindings;

bPendingRawInput Source code

var(KeyBindMenu) bool bPendingRawInput;

ClearCaption Source code

var(KeyBindMenu) localized string ClearCaption;

CloseCaption Source code

var(KeyBindMenu) localized string CloseCaption;

Headings[3] Source code

var(KeyBindMenu) localized string Headings[3];

NewIndex Source code

var(KeyBindMenu) editconst noexport int NewIndex;

NewSubIndex Source code

var(KeyBindMenu) editconst noexport int NewSubIndex;

PageCaption Source code

var(KeyBindMenu) localized string PageCaption;

ResetCaption Source code

var(KeyBindMenu) localized string ResetCaption;

SectionLabelMargin Source code

var(KeyBindMenu) float SectionLabelMargin;

SectionStyle Source code

var(KeyBindMenu) editconst noexport GUIStyles SectionStyle;

SectionStyleName Source code

var(KeyBindMenu) string SectionStyleName;

SelStyle Source code

var(KeyBindMenu) editconst noexport GUIStyles SelStyle;

SpeechLabel Source code

var(KeyBindMenu) localized string SpeechLabel;


Structures Detail

InputKeyInfo Source code

struct InputKeyInfo
{
var string KeyName;
var int KeyNumber;
var string LocalizedKeyName;
};


KeyBinding Source code

struct KeyBinding
{
var string Alias;
var bool bIsSectionLabel;
var array<int> BoundKeys;
var string KeyLabel;
};



Functions Detail

BeginRawInput Source code

function bool BeginRawInput ( GUIComponent Sender) )

BindKeyToAlias Source code

function BindKeyToAlias ( int BindIndex, int KeyIndex ) )

ClearBindings Source code

function ClearBindings ( ) )

CreateAliasMapping Source code

function CreateAliasMapping ( string Command, string FriendlyName, bool bSectionLabel) )

DrawBinding Source code

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

FindAliasIndex Source code

function int FindAliasIndex ( string Alias ) )

GetCurrentKeyBind Source code

function string GetCurrentKeyBind ( int BindIndex, int SubIndex) )

InitComponent Source code

function InitComponent ( GUIController MyController, GUIComponent MyOwner) )

Initialize Source code

function Initialize ( ) )

InitializeBindingsArray Source code

function InitializeBindingsArray ( ) )

InternalOnClick Source code

function bool InternalOnClick ( GUIComponent Sender) )

InternalOnCreateComponent Source code

function InternalOnCreateComponent ( GUIComponent NewComp, GUIComponent Sender ) )

ListGetSortString Source code

function string ListGetSortString ( int Index ) )

ListOnKeyEvent Source code

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

ListTrack Source code

function ListTrack ( GUIComponent Sender, int LastIndex) )

LoadCommands Source code

function LoadCommands ( ) )

MapBindings Source code

function MapBindings ( ) )

MouseOnCol1 Source code

function bool MouseOnCol1 ( ) )

MouseOnCol2 Source code

function bool MouseOnCol2 ( ) )

OnFadeIn Source code

function OnFadeIn ( ) )

RawKey Source code

function bool RawKey ( byte NewKey) )

RemoveAllOccurance Source code

function RemoveAllOccurance ( byte NewKey) )

RemoveExistingKey Source code

function RemoveExistingKey ( int Index, int SubIndex) )

SearchDown Source code

function SearchDown ( int OldIndex) )

SearchUp Source code

function SearchUp ( int OldIndex) )

SetKeyBind Source code

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

UpdateHint Source code

function UpdateHint ( int BindIndex) )

ValidBindIndex Source code

function bool ValidBindIndex ( int Index) )

ValidKeyIndex Source code

function bool ValidKeyIndex ( int Index) )


Defaultproperties

defaultproperties
{
     SectionStyleName="ListSection"
     Begin Object Class=GUIMultiColumnListBox Name=BindListBox
         HeaderColumnPerc(0)=0.500000
         HeaderColumnPerc(1)=0.250000
         HeaderColumnPerc(2)=0.250000
         OnCreateComponent=KeyBindMenu.InternalOnCreateComponent
         WinTop=0.085586
         WinLeft=0.043604
         WinWidth=0.911572
         WinHeight=0.705742
         TabOrder=0
         bBoundToParent=True
         bScaleToParent=True
     End Object
     lb_Binds=GUIMultiColumnListBox'GUI2K4.KeyBindMenu.BindListBox'


     Begin Object Class=GUIImage Name=BindBk
         Image=Texture'2K4Menus.NewControls.Display99'
         ImageStyle=ISTY_Stretched
         WinTop=0.057552
         WinLeft=0.031397
         WinWidth=0.937207
         WinHeight=0.808281
         bBoundToParent=True
         bScaleToParent=True
     End Object
     i_bk=GUIImage'GUI2K4.KeyBindMenu.BindBk'


     Begin Object Class=GUILabel Name=HintLabel
         TextAlign=TXTA_Center
         bMultiLine=True
         VertAlign=TXTA_Center
         FontScale=FNS_Small
         StyleName="textLabel"
         WinTop=0.872222
         WinLeft=0.032813
         WinWidth=0.520313
         WinHeight=0.085000
         bBoundToParent=True
         bScaleToParent=True
     End Object
     l_Hint=GUILabel'GUI2K4.KeyBindMenu.HintLabel'


     Headings(1)="Key 1"
     Headings(2)="Key 2"
     SectionLabelMargin=10.000000
     CloseCaption="CLOSE"
     ResetCaption="RESET"
     ClearCaption="Press '%backspace%' to unbind %keybind% from %keyname%."
     ActionText="{%keybinds%} - currently bound to this key."
     sb_Main=None


     DefaultLeft=0.100000
     DefaultTop=0.050000
     DefaultWidth=0.800000
     DefaultHeight=0.900000
     FadedIn=KeyBindMenu.OnFadeIn
     WinTop=0.050000
     WinLeft=0.100000
     WinWidth=0.800000
     WinHeight=0.900000
}

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