Aligning the namebox

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
Zocha
Newbie
Posts: 8
Joined: Wed Jan 19, 2011 11:18 pm
Projects: Magiflyte (GxB, fantasy), Creatopia
Location: US West Coast
Contact:

Aligning the namebox

#1 Post by Zocha » Sat Jul 30, 2011 10:46 pm

I encountered this problem while messing around with the namebox and textbox graphics...
It seems like the namebox is displayed behind the textbox, but what I want is for the namebox to overlap the textbox.

This was my original idea:
Image

But when I programmed it into Ren'Py, this is what came up (The namebox is a separate image here):
Image

Is there any way to change the layering of this?

(Also, another smaller issue: Is there any way to make the namebox a fixed size? Even when I specify the xminimum and yminimum, it seems that the length still changes according to the length of the name displayed.)

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Aligning the namebox

#2 Post by PyTom » Sun Jul 31, 2011 7:56 am

You can tweak the ordering by editing screens.rpy, and putting the code for the who window after the code for the what window. You can set the minimum size of a window using the xminimum style property.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users