Hello so recently i’ve been working on a pet game and i’ve been wondering on how to make a frame which scales based on the contents of the frame
(im using a normal frame for this)
Hello so recently i’ve been working on a pet game and i’ve been wondering on how to make a frame which scales based on the contents of the frame
(im using a normal frame for this)
Your question is vague – are you looking to resize the frame, downscale the children inside the frame, or do something else?
If you’re just trying to make the children scale with frame size, use the Scale
portion of the Size
property to do that. The AbsoluteWindowSize
property may also be of use if you’re looking to downscale the children themselves.
If you’re just trying to fit things into the frame, look into UIListLayout
and/or UIGridLayout
. They’ll automatically position the children of the frame to fit neatly into a grid or a list.
the issue with automatic size is that while yes it works, it size’s with the y postion too which is not what i want
I’m mainly trying to scale based on what the frame has, good example of this is psx
for context if you cant tell, those 2 frames have different size’s based on the contents of the frame its self
This question may have been answered already, seems like it’s right up your alley
i see. ill take a look and then update you
So, set it to X only then…? I thought that’s what the option is for
its attempting to size the contents but not the frame its self
what i want is the frame to be sized on the contents
well then it’ll size on the x axis which is not what i want
What do you want?
X, Y or both?
none, im saying i want to scale based on the contents of the frame
I read this multiple times and still don’t get what you want.
How is AutomaticSize
on frame not working??
im attempting to scale the frame based on the size of the content
look at psx for example
the frames size changes based on the children
I would use AutomaticSize
property on the main frame. I cannot see how doing that to the main frame is changing content size instead of the frame itself.
while yes it changes the frames size based on the children it also changes the size based on the x - y axis which is not what i want
Couldn’t you choose whether it should change X, Y or both?
What do you mean by “size” on the second time? First is frame’s size but what is the second?
? i dont get what your trying to say here
im attempting to change this frames size based on the contents so that it looks good