No Game Engine Game Dev: Word Sleuth 070: Making buttons look chalky and giving them icons

2 months ago
12

Streamed on 2024-10-22 (https://www.twitch.tv/thediscouragerofhesitancy)

Game Engines are for sissies!

I wasn't that happy with the chalk look the buttons were getting yesterday, so I started over a little bit. The new textures look much better. With that done, I made sure the PlaybackControls buttons were still Win95 style, but that caused a crash. The issue was that there wasn't enough texture slots to handle the switch-over from one style to another. One more texture slot fixed it right up.

After that there were a number of buttons that needed icons instead of text. I made a new texture with different icons inside it and added an icon and flag in Button to display the icon. I slowly created new icons and updated various elements across several scenes to be more consistent. During this I found that the button's weren't resizing quite right in SettingsScene when the window was resized. I just added an extra step to setRect to also update the edgeWidth and that was resolved.

Lastly, the IntSpinBox gray box doesn't look like it matches the rest of the game style. So I removed the ColorQuad from TextEdit and changed the fonts/colors a bit. The IntSpinBox now matches the styles elsewhere, but there is a useability concern around the TextEdits for NewHighscore and Settings not being visible when there is no text in them. I'll have to put the ColorQuad back in and conditionally show it. But that is for tomorrow.

Loading 1 comment...