Extends: CanvasLayer
var History: History
var Log: Logger
var is_console_shown: bool
var consume_input: bool
var previous_focus_owner: Control
var Text
var Line
func get_command_service(): Command/CommandService
func get_action_service(): Action/ActionService
func getCommand(name: String): Command/Command|null
func get_command(name: String): Command/Command|null
func findCommands(name: String): Command/CommandCollection
func find_commands(name: String): Command/CommandCollection
func addCommand(name: String, target: Reference, target_name: String|null): Command/CommandBuilder
func add_command(name: String, target: Reference, target_name: String|null): Command/CommandBuilder
Example usage:
Console.add_command('sayHello', self, 'print_hello')\
.set_description('Prints "Hello %name%!"')\
.add_argument('name', TYPE_STRING)\
.register()
func removeCommand(name: String): int
func remove_command(name: String): int
func write(message: String): void
func writeLine(message: String): void
func write_line(message: String): void
func clear(): void
func toggleConsole(): Console
func toggle_console(): Console
- signal toggled(is_console_shown): @param bool is_console_shown
- signal command_added(name, target, target_name): @param String name @param Reference target @param String|null target_name
- signal command_removed(name): @param String name
- signal command_executed(command): @param Command command
- signal command_not_found(name): @param String name