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
{
	Headings(1)="Key 1"
	Headings(2)="Key 2"


    SectionLabelMargin=10
	SectionStyleName="ListSection"


	ClearCaption="Press '%backspace%' to unbind %keybind% from %keyname%."
	CloseCaption="CLOSE"
	ResetCaption="RESET"


	FadedIn=OnFadeIn


	sb_Main=None
	Begin Object class=GUIImage name=BindBk
		WinWidth=0.937207
		WinHeight=0.808281
		WinLeft=0.031397
		WinTop=0.057552
		bBoundToParent=true
		bScaleToParent=true
		ImageStyle=ISTY_Stretched
		Image=material'2K4Menus.Newcontrols.Display99'
	End Object
	i_BK=BindBK


	Begin Object Class=GUIMultiColumnListBox Name=BindListBox
		WinWidth=0.911572
		WinHeight=0.705742
		WinLeft=0.043604
		WinTop=0.085586
		bScaleToParent=True
		bBoundToParent=True
	    OnCreateComponent=InternalOnCreateComponent
	    HeaderColumnPerc(0)=0.5
	    HeaderColumnPerc(1)=0.25
	    HeaderColumnPerc(2)=0.25
	    TabOrder=0
	End Object
	lb_Binds=BindListBox


    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=HintLabel


	WinWidth=0.8
	WinLeft=0.1
	WinTop=0.05
	WinHeight=0.9


    DefaultLeft=0.1
    DefaultTop=0.05
    DefaultWidth=0.8
    DefaultHeight=0.9


	ActionText="{%keybinds%} - currently bound to this key."
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: Do 14.8.2014 09:58:12.609 - Created with UnCodeX