How can I accomplish responsive GUI changing?

The question is a bit unclear, this is specifically what i want to do:

(do not mind those ugly bars on the left)

i wanna have an imagelabel, text label and some sort of bar that showcases a buff

the buff can be literally anything, so i cannot have preset positions

but how exactly can i even achieve something like this?

like use a for loop to see which buff slot is unoccupied, then occupy it?

but what if one buff goes away, how can i make every other buff change positions?


because rn i was thinking of something like this;

then whenever a buff gets added/deleted, reloop through all the slots and reassign positions

i feel like my idea is good but at the same time i wanna know if there’s different ways to do it

1 Like

Use UIListLayout under the main frame
put all the images, text, etc for each buff in their own frame, also under the main frame
use padding to space them out

and then whenever a buff gets applied, loop through the slots and occupy the first one that’s free?

1 Like

If thats what you prefer to do then yes. I think thats the most appropriate method for your use case

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.