I'm trying to build a scrolling bar the contains different sized buttons:
As you can see, if I use the
separation attribute of HBoxContainer, the buttons are evenly spaced, creating irregular gaps between each other.
I have tried all sorts of combination of
Size Flags and
Stretch Ratio. I haven't been able to:
1) get the buttons to space according to their size (with a small margin between each) and
2) keep the box scrollable.
HBoxContainer is placed inside a
ScrollContainer and each button is subsequently added as a child of the
HBoxContainer in the scripts.
At this point any help would be welcome!