How to scale TextureProgressBar image?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By guilleatm

In TextureRect class there is an ExpandMode option that you can set to ‘Keep Size’, ‘Fit Width’ and many more.

I am trying to replicate the same menu I did but with TextureProgressBar but I can’t find a way to scale these nodes.

Of course I can’t scale the nodes with the scale propery because they are in a GridContainer that overrides the values.

Am I missing something? How can I do this?

Thanks!

:bust_in_silhouette: Reply From: CassanovaWong

I don’t know much about Control Nodes, but I think you could use an AspectRatio container for it. AspectRatioContainer has stretch_mode.