Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

List GUI with UIListLayout too big and clustered?

Asked by
RafDev 109
8 years ago

On another question, I was told to use ROBLOX's new UIListLayout. I used the code below:

01scrollingFrame.CanvasSize = UDim2.new(1,0,0,20)
02local itemLabel = Instance.new("TextLabel")
03itemLabel.ZIndex = 7
04itemLabel.BackgroundTransparency = 1
05itemLabel.BorderSizePixel = 0
06itemLabel.Font = Enum.Font.SourceSans
07itemLabel.TextScaled = true
08itemLabel.TextColor3 = Color3.fromRGB(255,255,255)
09itemLabel.TextStrokeColor3 = Color3.fromRGB(51,51,51)
10itemLabel.TextStrokeTransparency = 0
11itemLabel.Text = "Item Name"
12itemLabel.Name = itemLabel.Text
13itemLabel.Parent = scrollingFrame

However, everything became very big and clustered. Example

This most likely has a very simple solution, I just have never used this before.

Thank you in advance

0
Why not use this as a background for your UI, this looks awesome. AdvancedCode 136 — 8y
0
Have you checked to see if the FillDirection of the UIListLayout is set to vertical instead of horizontal? Spongocardo 1991 — 8y
0
It's Vertical, that's not the problem @Spongocardo RafDev 109 — 8y

Answer this question