0 votes

Been trying to create my own "table" using UI elements, such that it will have two columns. When one of the columns is clicked, both will light up as if clicking anything on the row has the same effect.

To do this I need some sort of Panel to cover each HBoxContainer. I basically have a VBoxContainer with a bunch of HBoxContainers and inside of those I have two labels each, both Fill and Expand are checked off. This gives a decent table look, but without any background. Thus I made each HBoxContainer a child to Panels to hopefully give them backgrounds, however, these Panels end up having 0 height.

I was wondering if anyone here would have an idea of how to fix this? Adding Expand to vertical made it expand to the entire size of the VBoxContainer when I want it to only cover its "respective" size.

Any help would be appreciated!

in Engine by (45 points)

1 Answer

+1 vote

You can try altering the minimum size of the panels in the node's Rect menu in the inspector

by (22 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.