GUI: Equipment screen
Unsurprisingly, more UI this week! In addition to some bug smashing and some other random bits.
Equipment UI
Since the basic game UI view is up and running, now it's the time to start implementing some other "adjacent" screens. The one this week is equipment, and the one that's coming next week is the inventory. The approach taken is simplicity and compatibility with gamepad navigation (and obviously also mouse and keyboard, but that's a given).
The features are as follows:
- Equipment slots are in a vertical list
- Each slot contains the slot icon, the equipment name and the equipment icon
- Each slot is clickable, which brings another context menu with compatible equipment options for that slot
And that's it really! Quite simple for now, but works as intended. Due to some limitations, the moment you replace a piece of equipment, the equipment screen and context menu dissapear and game time passes. On the plus side, it's clear this way that time passes, so better be careful :)
A bit of a shame that you can't see the player sprite becoming visually different while you're changing equipment, but since it doesn't affect gameplay I thought it doesn't make much sense to show an overblown 24x24 sprite changing looks, plus it would probably happen after the end of the action (= game time passing).
C# 12
Dear ImGUI for Godot addon had a recent big release, so I thought I'd better update it, and got some errors. Because... it required C# 12! Ok, so that's a thing now? I'm clearly a bit behind. After setting up the project to now use C# 12, I got a couple of compile errors in my code regarding ... BinaryFormatter. So, it's done: BinaryFormatter is officially very much ousted. The error was from some forgotten bit of unused code, so after removing it, I pat myself on the back for changing to MemoryPack, and continued on other work. Bye bye BinaryFormatter, you were damn convenient though. Oh, and I guess I need to check if there's any new neat thing with C# 12, but eyeballing the features quickly, nothing stood out.
Also, currently on holidays, so next update is going to be lite!