Skip to content

Console

Class in Engine · Engine.Console · transient, config, native

Object › UIRoot › Interaction › Console

Within: GameViewportClient

Using it from Lua
h7.find_all("Console")            -- live instances
h7.find_class("Engine.Console")   -- the class
h7.hook("Engine.Console.AppendInputText", fn)

Constants

NameValue
MaxHistory16

Structs

AutoCompleteCommand

FieldType
Commandstring
Descstring

AutoCompleteNode

FieldType
IndexCharint
arrayinit
arrayinit

Properties

NameTypeNotes
AutoCompleteIndexinttransient
AutoCompleteIndicesarraytransient
AutoCompleteListarray<AutoCompleteCommand>transient
AutoCompleteTreeAutoCompleteNodetransient, native
bAutoCompleteLockedbooltransient
bCaptureKeyInputbooltransient
bCtrlbool
bEnableUIboolconfig
bIsRuntimeAutoCompleteUpToDatebooltransient
bNavigatingHistorybooltransient
bRequireCtrlToNavigateAutoCompleteboolconfig
ConsoleKeynameglobalconfig
ConsoleTargetPlayerLocalPlayer
DefaultTexture_BlackTexture2D
DefaultTexture_WhiteTexture2D
Historystring[MaxHistory]config
HistoryBotintconfig
HistoryCurintconfig
HistoryTopintconfig
ManualAutoCompleteListarray<AutoCompleteCommand>config
MaxScrollbackSizeintglobalconfig
SBHeadint
SBPosint
Scrollbackarray
TypedStrstring
TypedStrPosint
TypeKeynameglobalconfig

Functions

NameDeclaration
AppendInputTextfunction AppendInputText(string Text)
BuildRuntimeAutoCompleteListfinal native function BuildRuntimeAutoCompleteList(optional bool bForce)
ClearOutputfunction ClearOutput()
ConsoleCommandfunction ConsoleCommand(string Command)
FlushPlayerInputfunction FlushPlayerInput()
Initializedfunction Initialized()
InputCharfunction bool InputChar(int ControllerId, string Unicode)
InputKeyfunction bool InputKey(int ControllerId, name Key, EInputEvent Event, float AmountDepressed = 1.f, bool bGamepad = FALSE)
OutputTextevent OutputText(coerce string Text)
OutputTextLinefunction OutputTextLine(coerce string Text)
PostRender_Consolefunction PostRender_Console(Canvas Canvas)
ProcessControlKeyfunction bool ProcessControlKey(name Key, EInputEvent Event)
PurgeCommandFromHistoryfunction PurgeCommandFromHistory(string Command)
SetCursorPosfunction SetCursorPos(int Position)
SetInputTextfunction SetInputText(string Text)
StartTypingfunction StartTyping(coerce string Text)
UpdateCompleteIndicesnative function UpdateCompleteIndices()

States

State code replaces the class's functions while the object is in that state. Hook a state's version as Engine.Console.<State>.<Function>.

StateFunctions
OpenBeginState, InputChar, InputKey, PostRender_Console
TypingBeginState, EndState, InputChar, InputKey, PostRender_Console

Default values

OnReceivedNativeInputKey=InputKey
OnReceivedNativeInputChar=InputChar
DefaultTexture_Black=Texture2D'EngineResources.Black'
DefaultTexture_White=Texture2D'EngineResources.WhiteSquareTexture'

Inherited

FromMembers
Interaction0 properties, 11 functions
UIRoot1 properties, 8 functions
Object13 properties, 308 functions