With a little usability refinement, this will be a ‘must-have’ editor plugin.
Play tool
GDScript Console's itch.io pageResults
Criteria | Rank | Score* | Raw Score |
LOVE | #12 | 4.111 | 4.111 |
Ranked from 18 ratings. Score is adjusted from raw score by the median number of ratings per game in the jam.
GitHub or Gitlab repo
https://github.com/MrEliptik/gdscript_console
Comments
Off the top of my head:
- When the text box is focused it’d be nice to run it with
ctrl+enter
(or some configurable hotkey) - Your
ctrl+scroll
zoom is actually justscroll
zoom. edit: pull request sent - I don’t use the built-in text editor(and I didn’t look at your (very nice) readme until after I’d already tried it), so it would be nice to have visual feedback for what script the console is currently running against. This could also be useful if you have a tool script loaded in a scene and you want to watch the viewport while manipulating a node or something.
- It might be interesting to have a mode where instead of running against the open script, it runs against the selected node?
- This is less of a console and more of a REPL, but I’m not sure normal godot users will really know what that is.
To get around the `tool` requirement for executing functions from scripts, you can inject the `tool` keyword into the current script.
I use this pattern in a few of my plugins. It also makes developing plugins easier, as a nice side-effect :)
Yeah me too. Someone told me yesterday that you can evaluate expression in your code, which is pretty good to know: https://twitter.com/AlfredBaudisch/status/1488209575874596865?s=20&t=5Ue2Dm5jVo3X8cBCST_bwA
Ahah that’s the idea! Just the ability to run functions can be super useful imo
This is something I've wanted since fooooreeeeveer! Way too often I just want to run a 1-2 line snippet to test something, and so I always have little test scenes sitting around in my projects. Have you thought about allowing something more REPL like? This is already great, but that would be my dream. :-)
I encountered the same issue as Dark Peace but looks interesting based on the gifs.
I tried to run your example project but this showed up Control was not in dock. Cannot open file 'res://addons/gdscript_console/fonts/main_font.tres'. Failed loading resource: res://addons/gdscript_console/fonts/main_font.tres. Make sure resources have been imported by opening the project in the editor at least once. Cannot open file 'res://addons/gdscript_console/fonts/main_font.tres'. Failed loading resource: res://addons/gdscript_console/fonts/main_font.tres. Make sure resources have been imported by opening the project in the editor at least once. scene/resources/resource_format_text.cpp:175 - Couldn't load external resource: res://addons/gdscript_console/fonts/main_font.tres
Leave a comment
Log in with itch.io to leave a comment.