Cant get UI to dynamically scale one TextureRect and move other TextureRect aside

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

Hello,

I’ve been trying to create a menu with TextureRects that scale when moused over inside of various containers, like GridContainer and H / VBoxContainers etc to hold them.

I have 6 images and when they are moused over I want it to scale the moused over or clicked image then the other members to adjust to the increased size and give it room kind of like a carousel or apple app menu. So far I can get the scaling etc but not the neighbors to auto-adjust sideways inside of a container to the size increase. Would the size_flags be used?

x x x x x x

x x X x x x

Looking for advise on how to set this up. Is there a container type which would do this. Or will I have to code it manually?

Regards

That sounds like a type of container I would code manually, as opposed to trying to somehow make it work with the builtin containers.
Is your carousel scrolling also?

Zylann | 2019-08-02 13:16

I figured that would be the case. At this stage it wouldn’t be scrolling as all elements would fit nicely on screen with space for the movement.
I’ll give it a a go.
Cheers

Jason Moreland | 2019-08-02 21:26