Alright, here is how it is done. Ignore the terrible UI color choice, I am a terrible UI designer
So, as always, you need a screen gui. First things first, insert a normal frame, and size it to whatever you would like (And color it darker so it doesn’t hurt the eyes!!!). This frame is going to be the main background and what holds everything else. Inside of the frame, add a scrolling frame and set its size to 1, 0, 1, 0
so that it is covering the entire frame. Set the background transparency to 1. Next you are going to need to change the canvas size of the scrolling frame to all 0s.
Inside of the scrolling frame, add a UIListLayout. The default properties are perfect. Next add a new frame with size of 1,0,0,0
. Then the magic happens. Set the AutomaticSize
property to Y
. Now whenever a new child is added to the frame, the frame will resize itself to fit the new child.
Inside of that frame, add another UIListLayout, default properties are fine again. There are going to be 2 frames inside of that frame also. One for the title and one for the items. The title one is going to need a LayoutOrder
of 0, and the items 1. For the title one, the size is going to be something around 1,0,0,50
. Then just add a Text frame with size of 1,0,1,0
and write the title. (If you want the divider bar, add another frame with size of around 0.75,0,0,3
and color it correctly.)
In the items frame the size also needs to be 1,0,0,0
and the AutomaticSize
set to Y. Then add a UIGridLayout
and make your item frames. Here is a little demo that I made:
GuiThing.rbxm (12.9 KB)