Hello,
I am playing around with renpy and i could'nt get an answer to this question (searched the forum) :
How do i get thee size of a frame (ui.frame) fixed ?
Thx for your help
Fixed frame size
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Fixed frame size
Sorry for my english, i am french.
-
- Eileen-Class Veteran
- Posts: 1265
- Joined: Fri Aug 31, 2007 7:02 am
- Projects: 0 completed game. Still haven't made any meaningfully completed games...
- Contact:
Re: Fixed frame size
You can use xminimum and yminimum to set the minimum size. But if the content of the frame is larger, it'll still become larger.Doogy wrote:How do i get thee size of a frame (ui.frame) fixed ?
Renpy Manual wrote:xminimum --- The minimum size of this window in the x direction, including margins and padding. If the window would be smaller than this, it is grown to be at least this size. If a floating point number, it is scaled to the available width.
yminimum --- The minimum size of this window in the y direction, including margins and padding. If the window would be smaller than this, it is grown to be at least this size. If a floating point number, it is scaled to the available height.
Code: Select all
$ ui.frame(xminimum=300, yminimum=300)
$ ui.text("Something\nSmall", xalign=.5, yalign=.5)
I suspect somebody is stealing my internet identity so don't believe everything I tell you via messages. I don't post or send messages anymore so don't believe anything I tell you via messages or posts.
Who is online
Users browsing this forum: Majestic-12 [Bot]