Fixed frame size

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
Doogy
Newbie
Posts: 16
Joined: Wed Aug 19, 2009 9:52 am
Location: Rennes [France]
Contact:

Fixed frame size

#1 Post by Doogy »

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 :)
Sorry for my english, i am french.

JQuartz
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

#2 Post by JQuartz »

Doogy wrote:How do i get thee size of a frame (ui.frame) fixed ?
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.
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.

User avatar
Doogy
Newbie
Posts: 16
Joined: Wed Aug 19, 2009 9:52 am
Location: Rennes [France]
Contact:

Re: Fixed frame size

#3 Post by Doogy »

Thx a lot :)
Sorry for my english, i am french.

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot]