Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel
UE3:Console (UT3)
Object >> UIRoot >> Interaction >> Console |
Contents
- 1 Constants
- 2 Properties
- 2.1 bCaptureKeyInput
- 2.2 bCtrl
- 2.3 bEnableUI
- 2.4 ConsoleBufferText
- 2.5 ConsoleKey
- 2.6 ConsoleTargetPlayer
- 2.7 DefaultTexture_Black
- 2.8 DefaultTexture_White
- 2.9 History
- 2.10 HistoryBot
- 2.11 HistoryCur
- 2.12 HistoryTop
- 2.13 LargeConsoleInput
- 2.14 LargeConsoleScene
- 2.15 MaxScrollbackSize
- 2.16 MiniConsoleInput
- 2.17 MiniConsoleScene
- 2.18 SBHead
- 2.19 SBPos
- 2.20 Scrollback
- 2.21 TypedStr
- 2.22 TypedStrPos
- 2.23 TypeKey
- 2.24 Default values
- 3 Functions
- 3.1 Events
- 3.2 Other instance functions
- 3.2.1 AppendInputText
- 3.2.2 ClearOutput
- 3.2.3 ConsoleCommand
- 3.2.4 FlushPlayerInput
- 3.2.5 Initialized
- 3.2.6 InputChar
- 3.2.7 InputKey
- 3.2.8 IsUIConsoleOpen
- 3.2.9 IsUIMiniConsoleOpen
- 3.2.10 OutputTextLine
- 3.2.11 PostRender_Console
- 3.2.12 ProcessControlKey
- 3.2.13 PurgeCommandFromHistory
- 3.2.14 SetCursorPos
- 3.2.15 SetInputText
- 3.2.16 StartTyping
- 4 States
- Package:
- Engine
- Within class:
- GameViewportClient
- Direct subclass:
- UTConsole
- This class in other games:
- RTNP, U1, UT, UE2Runtime, U2XMP, U2, UT2003, UT2004, UDK
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Console - A quick little command line console that accepts most commands. Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.
Constants[edit]
MaxHistory[edit]
Value: 16
- of command history to remember.
Properties[edit]
bCaptureKeyInput[edit]
Type: bool
Modifiers: transient
Indicates that InputChar events should be captured to prevent them from being passed on to other interactions. Reset when the another keydown event is received.
bCtrl[edit]
Type: bool
True while a control key is pressed.
bEnableUI[edit]
Type: bool
Modifiers: config
ConsoleBufferText[edit]
Type: UILabel
ConsoleKey[edit]
Type: name
Modifiers: globalconfig
The key which opens the console.
Default value: 'F10'
ConsoleTargetPlayer[edit]
Type: LocalPlayer
The player which the next console command should be executed in the context of. If NULL, execute in the viewport.
DefaultTexture_Black[edit]
Type: Texture2D
Default value: Texture2D'EngineResources.Black'
DefaultTexture_White[edit]
Type: Texture2D
Default value: Texture2D'EngineResources.White'
History[edit]
Type: string
Array size: 16 (MaxHistory
)
Modifiers: config
tracks previously entered console commands
HistoryBot[edit]
Type: int
Modifiers: config
index into the History array for the earliest command that was entered
Default value: -1
HistoryCur[edit]
Type: int
Modifiers: config
the index of the current position in the History array
HistoryTop[edit]
Type: int
Modifiers: config
index into the History array for the latest command that was entered
LargeConsoleInput[edit]
Type: ConsoleEntry
LargeConsoleScene[edit]
Type: UIScene
MaxScrollbackSize[edit]
Type: int
Modifiers: globalconfig
Visible Console stuff
Default value: 1024
MiniConsoleInput[edit]
Type: ConsoleEntry
MiniConsoleScene[edit]
Type: UIScene
SBHead[edit]
Type: int
Where in the scrollback buffer are we
SBPos[edit]
Type: int
Where in the scrollback buffer are we
Scrollback[edit]
Holds the scrollback buffer
TypedStr[edit]
Type: string
The command the user is currently typing.
TypedStrPos[edit]
Type: int
Current position in TypedStr
TypeKey[edit]
Type: name
Modifiers: globalconfig
The key which opens the typing bar.
Default value: 'Tab'
Default values[edit]
Property | Value |
---|---|
OnReceivedNativeInputChar | InputChar |
OnReceivedNativeInputKey | InputKey |
Functions[edit]
Events[edit]
OutputText[edit]
Prints a (potentially multi-line) string of text to the console. The text is split into separate lines and passed to OutputTextLine.
Parameters:
- Text - Text to display on the console.
Other instance functions[edit]
AppendInputText[edit]
appends the specified text to the string of typed text
ClearOutput[edit]
Clears the console output buffer.
ConsoleCommand[edit]
Executes a console command.
Parameters:
- Command - The command to execute.
FlushPlayerInput[edit]
Clears out all pressed keys from the player's input object.
Initialized[edit]
Overrides: Interaction.Initialized
Called when the Console is added to the GameViewportClient's Interactions array.
InputChar[edit]
Process a character input event (typing) routed through unrealscript from another object. This method is assigned as the value for the OnRecievedNativeInputKey delegate so that native input events are routed to this unrealscript function.
Parameters:
- ControllerId - the controller that generated this character input event
- Unicode - the character that was typed
Returns:
- True to consume the character, false to pass it on.
InputKey[edit]
Process an input key event routed through unrealscript from another object. This method is assigned as the value for the OnRecievedNativeInputKey delegate so that native input events are routed to this unrealscript function.
Parameters:
- ControllerId - the controller that generated this input key event
- Key - the name of the key which an event occured for (KEY_Up, KEY_Down, etc.)
- EventType - the type of event which occured (pressed, released, etc.)
- AmountDepressed - for analog keys, the depression percent.
Returns:
- true to consume the key event, false to pass it on.
IsUIConsoleOpen[edit]
IsUIMiniConsoleOpen[edit]
OutputTextLine[edit]
Prints a single line of text to the console.
Parameters:
- Text - A line of text to display on the console.
PostRender_Console[edit]
ProcessControlKey[edit]
looks for Control key presses and the copy/paste combination that apply to both the console bar and the full open console
PurgeCommandFromHistory[edit]
Searches console command history and removes any entries matching the specified command.
Parameters:
- Command - The command to search for and purge from the history.
SetCursorPos[edit]
SetInputText[edit]
StartTyping[edit]
Opens the typing bar with text already entered.
Parameters:
- Text - The text to enter in the typing bar.
States[edit]
Open[edit]
Open.BeginState[edit]
Overrides: Object.BeginState (global)
Called immediately when entering a state, while within the GotoState() call that caused the state change (before any state code is executed).
Open.EndState[edit]
Overrides: Object.EndState (global)
Called immediately before going out of the current state, while within the GotoState() call that caused the state change, and before BeginState() is called within the new state.
Open.PostRender_Console[edit]
Overrides: PostRender_Console (global)
Open.InputChar[edit]
Overrides: InputChar (global)
(Description copied from Console.InputChar)
Process a character input event (typing) routed through unrealscript from another object. This method is assigned as the value for the OnRecievedNativeInputKey delegate so that native input events are routed to this unrealscript function.
Parameters:
- ControllerId - the controller that generated this character input event
- Unicode - the character that was typed
Returns:
- True to consume the character, false to pass it on.
Open.InputKey[edit]
Overrides: InputKey (global)
Process an input key event routed through unrealscript from another object. This method is assigned as the value for the OnRecievedNativeInputKey delegate so that native input events are routed to this unrealscript function.
Parameters:
- ControllerId - the controller that generated this input key event
- Key - the name of the key which an event occured for (KEY_Up, KEY_Down, etc.)
- EventType - the type of event which occured (pressed, released, etc.)
- AmountDepressed - for analog keys, the depression percent.
Returns:
- true to consume the key event, false to pass it on.
Typing[edit]
This state is used when the typing bar is open.
Typing.BeginState[edit]
Overrides: Object.BeginState (global)
Called immediately when entering a state, while within the GotoState() call that caused the state change (before any state code is executed).
Typing.EndState[edit]
Overrides: Object.EndState (global)
Called immediately before going out of the current state, while within the GotoState() call that caused the state change, and before BeginState() is called within the new state.
Typing.PostRender_Console[edit]
Overrides: PostRender_Console (global)
Typing.InputChar[edit]
Overrides: InputChar (global)
Process a character input event (typing) routed through unrealscript from another object. This method is assigned as the value for the OnRecievedNativeInputKey delegate so that native input events are routed to this unrealscript function.
Parameters:
- ControllerId - the controller that generated this character input event
- Unicode - the character that was typed
Returns:
- True to consume the character, false to pass it on.
Typing.InputKey[edit]
Overrides: InputKey (global)
Process an input key event routed through unrealscript from another object. This method is assigned as the value for the OnRecievedNativeInputKey delegate so that native input events are routed to this unrealscript function.
Parameters:
- ControllerId - the controller that generated this input key event
- Key - the name of the key which an event occured for (KEY_Up, KEY_Down, etc.)
- EventType - the type of event which occured (pressed, released, etc.)
- AmountDepressed - for analog keys, the depression percent.
Returns:
- true to consume the key event, false to pass it on.