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

How do I make the newer items go on top of the older items using UIListLayout?

Asked by
Loot_O 42
4 years ago

So I'm making this ChatLogs Gui, and I have a problem with it; the new items that get added inside the scrolling gui go below the older items. I also forgot to say there is UIListLayout inside the scrolling frame. Since the newer items go below the older items, I have to scroll all the way down to see the new stuff. I've messed around with the properties of the UIListLayout, but everything I tried didn't work. Click Here to see what it looks like.

Another thing, I did find https://developer.roblox.com/en-us/api-reference/property/UIGridStyleLayout/SortOrder and saw the code sample that shows how to do it, but It's confusing to me. In conclusion, I just want a simple explanation of how to make the newer items go above the older items using UIListLayout.

1 answer

Log in to vote
0
Answered by 4 years ago

the SortOrder enum doesn't have any useful value for this case, so i'd approach this by getting the array of all items and parent them to nil then, add which ever item i want on top in the array at the beginning, and once again parent all the item to the gui that holds displays them..

I know this is a hurdle to speed, and general efficiency, but at times, u have to sacrifice some things for others.

0
also, make sure the SortOrder enum is set to Custom User#23252 26 — 4y
0
wdym custom? I don't see something saying custom Loot_O 42 — 4y
0
i dont remember what it displays in studio, just make sre its not set to `Name` User#23252 26 — 4y
0
Thanks! I tried something similar to it, and it worked! Loot_O 42 — 4y
0
np User#23252 26 — 4y
Ad

Answer this question