Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

GsomConsole

An asset by RaubTieR
The page banner background of a mountain and forest
GsomConsole thumbnail image
GsomConsole thumbnail image
GsomConsole hero image

Quick Information

0 ratings
GsomConsole icon image
RaubTieR
GsomConsole

A Half-Life 1 inspired console for Godot projects.There is a singleton and optional UI (that doesn't autoload).It's also possible to craft your own UI instead.Future versions may provide additional UI implementations as well.The core idea: you have CVARs (console variables) and CMDs (commands).You can use CVARs as global variables and settings. CMDs are like global events/signals.Supported variable types: `bool, int, float, String` - the variable typeis determined when it is registered with an initial value.After that, new values are interpreted as being of that type.`GsomConsole.register_cvar("test", 5, "Description.")` - will register an `int` CVAR.● `test` -> output 5● `test 6` -> now `test` is `6`● `test 7.1` -> now test is `7` because it is `int`Registering commands simply declares them for future calls. The consoledoesn't do anything specific per CMD call - only emits the `called_cmd` signal.`GsomConsole.register_cmd("do_something", "Description.")` - will register the `do_something` CMD.● `do_something` -> will emit `called_cmd.emit("do_something", [])`.● `do_something abc -1 20 true 3.3` -> will emit `called_cmd.emit("do_something", ["abc", "-1", "20", "true", "3.3"])`.

Supported Engine Version
4.2
Version String
0.1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

A Half-Life 1 inspired console for Godot projects.
There is a singleton and optional UI (that doesn't autoload).
It's also possible to craft your own UI instead.
Future versions may provide additional UI implementations as well.

The core idea: you have CVARs (console variables) and CMDs (commands).
You can use CVARs as global variables and settings. CMDs are like global events/signals.

Supported variable types: `bool, int, float, String` - the variable type
is determined when it is registered with an initial value.
After that, new values are interpreted as being of that type.

`GsomConsole.register_cvar("test", 5, "Description.")` - will register an `int` CVAR.

● `test` -> output 5
● `test 6` -> now `test` is `6`
● `test 7.1` -> now test is `7` because it is `int`

Registering commands simply declares them for future calls. The console
doesn't do anything specific per CMD call - only emits the `called_cmd` signal.

`GsomConsole.register_cmd("do_something", "Description.")` - will register the `do_something` CMD.

● `do_something` -> will emit `called_cmd.emit("do_something", [])`.
● `do_something abc -1 20 true 3.3` -> will
emit `called_cmd.emit("do_something", ["abc", "-1", "20", "true", "3.3"])`.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
GsomConsole icon image
RaubTieR
GsomConsole

A Half-Life 1 inspired console for Godot projects.There is a singleton and optional UI (that doesn't autoload).It's also possible to craft your own UI instead.Future versions may provide additional UI implementations as well.The core idea: you have CVARs (console variables) and CMDs (commands).You can use CVARs as global variables and settings. CMDs are like global events/signals.Supported variable types: `bool, int, float, String` - the variable typeis determined when it is registered with an initial value.After that, new values are interpreted as being of that type.`GsomConsole.register_cvar("test", 5, "Description.")` - will register an `int` CVAR.● `test` -> output 5● `test 6` -> now `test` is `6`● `test 7.1` -> now test is `7` because it is `int`Registering commands simply declares them for future calls. The consoledoesn't do anything specific per CMD call - only emits the `called_cmd` signal.`GsomConsole.register_cmd("do_something", "Description.")` - will register the `do_something` CMD.● `do_something` -> will emit `called_cmd.emit("do_something", [])`.● `do_something abc -1 20 true 3.3` -> will emit `called_cmd.emit("do_something", ["abc", "-1", "20", "true", "3.3"])`.

Supported Engine Version
4.2
Version String
0.1.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers