Godot Version
4.3rc3
Question
According to some video, the best buttons are TextureButton
s but they for some reason don’t support text, so the video said you should add labels to them (TextureButton
is parent to Label
). That feels ghetto but whatever. The problem: i’m now internationalizing my game and longer text causes the Label
to grow but not the TextureButton
, so it looks dumb.
Setup: VBox --> TextureButton --> Label
![image|622x500]
Regular buttons grow, although at different sizes, which looks awful. Putting them in a VBox fixes that for normal buttons but not TextureButton
s.
Not sure what the right thing to do is. Here are thoughts:
- Find a way to make
TextureButton
s grow when their childLabel
does. - Learn that
TextureButton
s secretly have a text property i didn’t know about. - Learn that there’s a command like
repack()
or something that resizes things at runtime (some languages have this). - Give up on cool textures and just use normal buttons.
- Give up on localizing. Everyone in the world prefers English, right?