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

How to make Dynamic ScrollFrame?

Asked by 4 years ago
Edited 4 years ago

I'm having trouble figuring out how to achieve this effect, i'm hoping someone could point me in the right direction.

https://gyazo.com/111471b584d82cc384422c22d3c9894d

1
There's no scrolling in that gif. What precisely is it that you want to do? BlueTaslem 18071 — 4y
0
Not sure what to call it...when you click on farms it opens sub categories and moves everything below the category you clicked downward. ForeverBrown 356 — 4y
0
As soon as you show the sub items in the list you can ask for a property called the AbsoluteSize of the frame which holds all the items, you can compare that to the AbsoluteSize of the ScrollingFrame which surrounds it and then calculate the percentage between those 2 for how much to increase/decrease it. After that you can simply put that percentage increase within the height of the ScrollingFram User#834 0 — 4y

1 answer

Log in to vote
0
Answered by
ErtyPL 129
4 years ago

"it opens sub categories and moves everything below the category you clicked downward." My answer is a video https://www.youtube.com/watch?v=V_eqogNIYEg.

Check out roblox wiki article about animating user interface GUI Animations

0
First that video is bad since it should be using tweens instead of for loops..second, this does not go into solving my problem. I'm wanting to not have to do all the tweening manually. The script should be finding the correct positions for me. ForeverBrown 356 — 4y
0
So just make one that will find the correct position probably it's not easy to make one but there are few ways to make it stop on specific category text label ErtyPL 129 — 4y
Ad

Answer this question