Use items under the
But maybe search as well.
Design and Code a Title Screen in Godot 3 (tutorial)
Even easier, shove the buttons in a
GridContainer (never knew that existed )
I think you can still do it with controls. I grabbed some images from Kenny and put them into a simple grid. There’s one line of code that grabs the name of the button chosen.
Here’s the code That’s how I’d do it. Might not be the best way, but it works.
Here’s what it looks like:
I gained some useful information (thanks for that ) but it’s not really what I need. I need something like a grid with icons and labels for selected cells. Tried to google it and found some stuff like buttons or popup menus but not the player select menu. I guess I should use something like ItemList node but I’m not quite sure how to change the visual part of the whole thing (like adding Icons, labels and so on).
shishyando | 2020-07-11 16:52
Yes you can do that, the controls will let you do what you want.
A vbox, containing hbox items will create a grid.
What caught me out was not setting the minimum size of an object, so the control knows how to space things out.
What’s the destination platform you want your game to run on?
deaton64 | 2020-07-11 19:56
It seems that an ItemList can do what I need, still trying some things with it. The destination platform is PC.
shishyando | 2020-07-11 20:17
I’m about to edit my answer, as I still think it’s the way to do it.
deaton64 | 2020-07-12 09:34