I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

UE2:KeyBindMenu (UT2004)

From Unreal Wiki, The Unreal Engine Documentation Site
(Redirected from UE2:InputKeyInfo (UT2004))
Jump to: navigation, search
Package: 
GUI2K4
Direct subclasses:
ControlBinder, SpeechBinder

Created on: 11/23/2003 Base class for menus that allow configuration of keybinds

Written by Ron Prestenback © 2003, Epic Games, Inc. All Rights Reserved

Properties[edit]

Property group 'KeyBindMenu'[edit]

ActionText[edit]

Type: string

Modifiers: localized


Default value: "{%keybinds%} - currently bound to this key."

AllKeys[edit]

Type: InputKeyInfo

Array size: 255

Modifiers: noexport, editconst


Bindings[edit]

Type: array<KeyBinding>


bPendingRawInput[edit]

Type: bool

Waiting for input - changing a keybind

ClearCaption[edit]

Type: string

Modifiers: localized


Default value: "Press '%backspace%' to unbind %keybind% from %keyname%."

CloseCaption[edit]

Type: string

Modifiers: localized


Default value: "CLOSE"

Headings[edit]

Type: string

Array size: 3

Modifiers: localized


Default value, index 1: "Key 1"

Default value, index 2: "Key 2"

NewIndex[edit]

Type: int

Modifiers: editconst, noexport


NewSubIndex[edit]

Type: int

Modifiers: editconst, noexport


PageCaption[edit]

Type: string

Modifiers: localized


ResetCaption[edit]

Type: string

Modifiers: localized


Default value: "RESET"

SectionLabelMargin[edit]

Type: float


Default value: 10.0

SectionStyle[edit]

Type: GUIStyles

Modifiers: editconst, noexport


SectionStyleName[edit]

Type: string


Default value: "ListSection"

SelStyle[edit]

Type: GUIStyles

Modifiers: editconst, noexport


SpeechLabel[edit]

Type: string

Modifiers: localized


Internal variables[edit]

i_Bk[edit]

Type: GUIImage

Modifiers: automated


Default value: GUIImage'BindBk'

l_Hint[edit]

Type: GUILabel

Modifiers: automated


Default value: GUILabel'HintLabel'

lb_Binds[edit]

Type: GUIMultiColumnListBox

Modifiers: automated


Default value: GUIMultiColumnListBox'BindListBox'

li_Binds[edit]

Type: GUIMultiColumnList

Modifiers: automated


Default values[edit]

Property Value
DefaultHeight 0.9
DefaultLeft 0.1
DefaultTop 0.05
DefaultWidth 0.8
FadedIn OnFadeIn
sb_Main None
WinHeight 0.9
WinLeft 0.1
WinTop 0.05
WinWidth 0.8

Subobjects[edit]

BindBk[edit]

Class: XInterface.GUIImage

Property Value
bBoundToParent True
bScaleToParent True
Image Material'2K4Menus.Newcontrols.Display99'
ImageStyle ISTY_Stretched
WinHeight 0.808281
WinLeft 0.031397
WinTop 0.057552
WinWidth 0.937207

BindListBox[edit]

Class: XInterface.GUIMultiColumnListBox

Property Value
bBoundToParent True
bScaleToParent True
HeaderColumnPerc[0] 0.5
HeaderColumnPerc[1] 0.25
HeaderColumnPerc[2] 0.25
OnCreateComponent InternalOnCreateComponent
TabOrder 0
WinHeight 0.705742
WinLeft 0.043604
WinTop 0.085586
WinWidth 0.911572

HintLabel[edit]

Class: XInterface.GUILabel

Property Value
bBoundToParent True
bMultiLine True
bScaleToParent True
FontScale FNS_Small
StyleName "textLabel"
TextAlign TXTA_Center
VertAlign TXTA_Center
WinHeight 0.085
WinLeft 0.032813
WinTop 0.872222
WinWidth 0.520313

Structs[edit]

InputKeyInfo[edit]

int KeyNumber 
string KeyName 
string LocalizedKeyName 

KeyBinding[edit]

bool bIsSectionLabel 
string KeyLabel 
string Alias 
array<int> BoundKeys 

Functions[edit]

Events[edit]

InitComponent[edit]

event InitComponent (GUIController MyController, GUIComponent MyOwner)

Overrides: LockedFloatingWindow.InitComponent


Other instance functions[edit]

BeginRawInput[edit]

function bool BeginRawInput (GUIComponent Sender)


BindKeyToAlias[edit]

function BindKeyToAlias (int BindIndex, int KeyIndex)


ClearBindings[edit]

function ClearBindings ()


CreateAliasMapping[edit]

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


DrawBinding[edit]

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


FindAliasIndex[edit]

function int FindAliasIndex (string Alias)


GetCurrentKeyBind[edit]

function string GetCurrentKeyBind (int BindIndex, int SubIndex)


Initialize[edit]

function Initialize ()


InitializeBindingsArray[edit]

function InitializeBindingsArray ()


InternalOnClick[edit]

function bool InternalOnClick (GUIComponent Sender)

Overrides: LockedFloatingWindow.InternalOnClick


InternalOnCreateComponent[edit]

function InternalOnCreateComponent (GUIComponent NewComp, GUIComponent Sender)

Overrides: LockedFloatingWindow.InternalOnCreateComponent


ListGetSortString[edit]

function string ListGetSortString (int Index)


ListOnKeyEvent[edit]

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


ListTrack[edit]

function ListTrack (GUIComponent Sender, int LastIndex)


LoadCommands[edit]

function LoadCommands ()


MapBindings[edit]

function MapBindings ()


MouseOnCol1[edit]

function bool MouseOnCol1 ()


MouseOnCol2[edit]

function bool MouseOnCol2 ()


OnFadeIn[edit]

function OnFadeIn ()


RawKey[edit]

function bool RawKey (byte NewKey)


RemoveAllOccurance[edit]

function RemoveAllOccurance (byte NewKey)


RemoveExistingKey[edit]

function RemoveExistingKey (int Index, int SubIndex)


SearchDown[edit]

function SearchDown (int OldIndex)


SearchUp[edit]

function SearchUp (int OldIndex)


SetKeyBind[edit]

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


UpdateHint[edit]

function UpdateHint (int BindIndex)


ValidBindIndex[edit]

function bool ValidBindIndex (int Index)


ValidKeyIndex[edit]

function bool ValidKeyIndex (int Index)