{"repo":"raub/gsom_console","free":true,"listed":false,"github":"https://github.com/raub/gsom_console","clone":"git clone https://github.com/raub/gsom_console.git","description":"A Half-Life 1 inspired console for Godot projects.","language":"GDScript","stars":24,"topics":["console","godot","plugin","ui"],"license":"MIT","category":"game-templates","readme_excerpt":"gsom console 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. Implements variables, commands, aliases, input, logic, etc. There are useful built-in commands as described below. See example script. You can only register CVARs/CMDs/actions from code. Most other things can be then acheived through console scripting. Including direct calls to GsomConsole.submit(\"any kind of command; as if from UI window\") . CVARs GsomConsole.register cvar(\"test\", 5, \"Description.\") - will register an int CVAR. 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. 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. CMDs 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\"]) . Actions GsomConsole.register action(\"jump\") - will register the jump input action. +jump;wait;-jump - performs a single-frame long jump press. During that frame, GsomConsole.read action(\"jump\") will","default_branch":null,"files":null,"tree":[],"storefront":"/r/raub","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/raub/gsom_console/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}