LinuxLikeConsole
LinuxLikeConsole copied to clipboard
Linux Like Console written in gdscript for Godot (Game Engine)
LinuxLikeConsole (v3.0)
Linux Like Console written in gdscript for Godot (Game Engine)
For additional features or problems just write an issue or Discord cobrapitz#2872
toggle with: key above tab
Showcase
Wiki
Changelog
Features:
- [x] Auto completion / suggestion
- [x] Custom commands
- [x] (NEW) Custom Channels (Default only 'All' Channel)
- [x] Custom/built in themes (arch theme, ubuntu theme, windows, light, dark, text_only)
- [x] Built in commands like
- [x] man, tree, ls, cd, help, alias, setDock, clear, ...
- [x] Predefined and runtime forwarded parameters (runtime forwarding is prioritized)
- [x] Easy BBcode support (like: [b]this is bold[/b])
- [x] Logging
- [x] Dragable console
- [x] Slide in animation
- [x] User rights (to restrict the usage of developer only commands)
- [x] Additional Visual and Logging functions (warn, error, sucess )
How to create custom commands
Full Version here
#short version
onready var console = $Console
func _ready():
var printThreeRef = CommandRef.new(self, "my_three_print", 3)
var printThreeCommand = ConsoleCommand.new('printThree', printThreeRef , 'Custom print.')
console.add_command(printThreeCommand )
# Also possible style
console.add_command(ConsoleCommand.new( \
'printThree', \ # command (like /printThree arg1 arg2 arg3)
CommandRef.new(self, "my_three_print", 3) , \ # object with function name and arguments
'Custom print.') ) \ # description
# 3-arguments version (called with: /printVariant print this please)
func my_three_print(arg1, arg2, arg3):
print("your args: %s %s %s" % [arg1, arg2, arg3])