Skip to content

Commands

cobrapitz edited this page Oct 28, 2019 · 22 revisions

List of all default built-in commands


man

help

helpAll

exit

clear

setCommandSign

toggleShowEditLine

setUserMessageSign

toggleNewLineAfterCommand

toggleWindowDrag

setTheme

setDock

setDefaultTextColor

alias

toggleTitlebar (v1.1)

setConsoleSize (v1.1)

showDefaultCommands (v2.0)

helpDefault (v2.0)

setUserColor (v3.0)

tree (v3.0)

cd (v3.0)

set (v3.0)

get (v3.0)

has (v3.0)

pwd (v3.0)

ls (v3.0)

addChild (v3.0)



  • man [command]

Shows description for the [command] and prints how many arguments are needed.


  • help

Shows all user defined commands.


  • helpAll

Shows all commands.


  • exit

Closes the console.


  • clear

Clears the console.


  • setCommandSign

Sets new command sign. (default: '/')


  • toggleShowEditLine

Do(n't) display lineEdit background. (user input line)


  • setUserMessageSign

(...)


  • toggleNewLineAfterCommand


  • toggleWindowDrag

Whether the console is draggable with mouse or not.


  • setTheme

Sets the theme by name.


  • setDock

Sets how the console is 'docked'. (default: left, right, top, bottom, full_screen, custom)


  • setDefaultTextColor


  • alias

Sets different name for existing commands. example:

/alias helpTheMan man help

Copies 'man' and adds command 'helpTheMan' with default argument help.

Which can be called by

/helpTheMan 

Prints the description for 'help' (/man help)


  • toggleTitlebar

Toggles the titlebar.


  • setConsoleSize [h] [w]

Sets the console size.


  • helpDefault / showDefaultCommands

Shows the default commands.


  • setUserColor [color code #rrggbb]



  • tree

Shows the !whole! tree beginning by current node. (Colors for Control/Spatial/Node2D/Other)



  • cd

Change current node.



  • set

Like the set method that every node has, let's u edit the value (only float/int/string supported).



  • get

Get method of nodes, prints value of node variable or null if it doesn't exist.



  • has

True if the node has the variable.



  • pwd

Shows current directory path. (= node.get_path())



  • ls

Shows children.



  • addChild

Loads and adds a scene to the current node or given node.


Clone this wiki locally