Day 4 — Configuration
Another slow progress day, this time, trying to put in some basic configuration options. I was also trying to determine what other settings I need to include and ran into…more snags!
UI Scaling isn’t as simple as I had hoped. The closest, fastest idea I had involved using SubViewport, but the result was …subpar. I hate putting this aside. I had wanted most of the basic UI screens completed before focusing on the game building, but if I don’t, I’ll be stuck on this. I’ll have to figure out something that works for me in the future. Or after I have a playable game.
Good news is I found ConfigFile in Godot’s documentation. It was pretty painless to implement, yay! But then there was plugging it into the existing option controls. Getting the data from the controls to the config file was easy enough. Updating the controls to show the saved settings was slightly more difficult. I was more surprised by the OptionButton, or the PopupMenu, not having a get_items()
method to just return a collection of it. At least it gave me an item_count
so a simple for loop over a range of numbers worked out.
At least I can end today feeling like I have just enough done with the screens to finally move forward into making the game itself. Yay!
Get What Lurks Within...
What Lurks Within...
A Godot Wild Jam Entry for August 2024
More posts
- Bugfixes round 1Aug 18, 2024
- As Ready As It Can Be...Aug 18, 2024
- Day 5 & 6Aug 15, 2024
- Day 3 — The FoundationAug 12, 2024
- Pre-Jam ThoughtsAug 09, 2024