• 2D
  • Can't change the size of texture button in HBox Container

I'm currently working on making a menu in my game that shows notes you've acquired throughout the game. So to start, I used a VBox Container in order to organize the different notes. Inside this container, there's a HBox Container for each note, which contains an image and a text. Here's what it looks like:

For now, I've been using the Godot logo as a placeholder for the images, but now that I have the final files, I have a problem regarding their size. When I import the image, it looks like this:

The problem is that I can't find a way to resize the image in a way that it also affects the VBoxContainer, because even if I change the rect_scale value, the other nodes don't move along with it:

Here's how I organized the nodes:

Any help would be appreciated

I recommend using a TextureRect within a standard Button node instead of using TextureButton here. Then you can set the Expand property on TextureRect as needed.

7 days later

Thank you for your answer, I couldn't figure out how to expand it properly. The size flags also helped me, but I couldn't understand how to use them so I was a bit confused.