Hi, I thought I'd have a go at making a dialogue UI similar to Disco Elysium.
So basically a character face about half way up the screen, set in a bit from the right, and then their bit of conversation appear next to their face.
When you click "next", a new dialgoue item is added pushing the previous one up - and maybe the face is replaced etc..
Each item getting pushed up means they do disappear off screen, but theyre contained in a scrollable window so you can scroll up review the convo.
So I need a container that I could add items to. I need the container to be scrollable. And I needed the items to be added from bottom up. Lastly I wanted the items to be added about mid way across the screen, being able to take up all potential space below, while pushing previous items up out of the way.
I attempted this by adding a ScollerContainer, and adding to that a VBoxContainer, then creating a "ConvoItem" control object to add to the VBoxContainer.
The ScrollerContainer and VBoxContainer are set to "Fill" on the vertical size. So they are taking up 100% of the screen's vertical space.
Ive got code working that adds a ConvoItem to the VBoxContainer and it grows the list from bottom to top.
But I cant get it to add "half way up the screen" (or a specific position) and then let the ConvoItem fill the space below it while also pushing other items up - potentially - off screen.
Ive tried many combos of the size flags on the ConvoItem, but I think im missing something with them.
Hopefully this makes sense, and someone can help point me in the right direction.