Screen Console is a logging tool made for Godot 4 that allows you to print messages to the screen for debugging and development purposes.
It was developed as part of the development of the Kitchen Madness game, but I decided to make the tool open source since I believe that other may have the same issue.
Wishlist Kitchen Madness on steam: https://store.steampowered.com/app/2450740/Kitchen_Madness/
- Godot 4.0 +
- again
- Create the
addons/
folder if you do not already have one. - Clone or copy the Screen Console project folder to the
addons/
folder. - Open
Project Settings
and go to thePlugins
Tab. - Enable the
Screen Console
plugin by clicking the checkbox. - Go to the
Autoload
Tab - Click the button to set the path navigate to
addons/screen_console/screen_console.gd
. - Set the
Node Name
toSConsole
and clickAdd
Done!
Enables/Disable logging with the Screen Console tool. This makes it so you don't really have to delete or comment it out the SConsole.print()
in your code.
If disabled than nothing will be printed.
Number of maximum number of messages printed to the screen at one time.
If it goes over that, print commands will be ignores until messages on screen are lower than buffer again.
Time messages will stay on screen in seconds.
After that messages will be automatically deleted.
If enabled a current timestamp will appear next to the log message.
Vertical spacing between messages. Bigger fonts may need bigger vertical spacing.
Well, pretty self explanatory.
Color for the background layer. So it is easier to see the logs on screen.
Well, pretty self explanatory.
Where on the screen you would like the messages to be anchored to.
- Top-Left
- Top-Right
- Bottom-Left
- Bottom-Right
To print messages to screen all you need to do is:
SConsole.print("Hello Screen Console!)
That is all!
Not checked means I am currently working on.
- Be able to print messages to screen on top left corner
- Create scene to be able to visualy configure tool
- Remove messages from screen after a timeout
- Show timestamp on message (optional)
- Configure spacing from corners
- COnfigure vertical spacing between messages
- Be able to anchor messages to corners other than Top Left.
- Be able to configure font color.
- Be able to configure font size.
- Be able to enale and disable logging messages to screen with checkbox.
- Add layer as a background of messages
Features that are in the roadmap of the project:
Ideally in order of priority, but nothing set in stone.
- Fix Anchor bug
- Add custom formatting of messages
- Add options to save logging to disc
Pull requests are warmly welcome!!!
For major changes, please open an issue first and let's talk about it. We are all ears!
If you'd like to contribute, please fork the repository and make changes as you'd like and shoot a Pull Request our way!
Please make sure to update tests as appropriate.
If you feel like you need it go check the GitHub documentation on creating a pull request.
Contribution to the project is organized under the terms of the Contributor Covenant, the maintainer of Screen Console, @joaoh82, promises to intervene to uphold that code of conduct.
If you want to contact me you can reach me at [email protected].