Skip to content

An developer console for Godot 4

License

Notifications You must be signed in to change notification settings

vintnarni/gosole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gosole

Gosole is an developer console addon for Godot Engine 4 written in GDScript that allows you to add custom commands.

Gosole in action

This is from before it renamed to Gosole cuz' i'm too lazy to change.

Usage

To add command, type:

Console.register_cmd("example",example,"Example command")

You can also specify up to 3 params:

Console.register_cmd("teleport",teleport,"Teleport to specified position or entity",3)

or an help parameters:

Console.register_cmd("heal",heal,"Heal the player by <amount>",1,"<amount>")

To remove:

Console.unregister_cmd("example")

Features

  • Command execution with ability to create custom commands with description, parameter(s), help parameter(s), and flag(s).
  • Aliases.
  • Basic command history.
  • Log to view printed lines.
  • Scrollback.
  • Command/alias list with description, flags, etc. if specified.

Some parts of the code has been taken from jitspoe's godot-console.

Differences from jitspoe's console

  • Rewritten and refactored.
  • Different look from Quake III: Arena.
  • Doesn't automatically create GUI elements in script.
  • Uses custom input instead of LineEdit.
  • Slide animation when opening, toggling fullscreen, or closing.
  • Ability to create aliases.
  • No autocompletion?

Known Issues

  • Alias with another alias may cause errors if command_list was used, likely due to the limitation of GDScript.

Third-party assets

Inconsolata for console font licensed under OFL (Open Font License).

About

An developer console for Godot 4

Resources

License

Stars

Watchers

Forks