Load Slot Vertical Spacing

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
JustinHanks
Newbie
Posts: 7
Joined: Tue Nov 01, 2016 12:31 pm
Contact:

Load Slot Vertical Spacing

#1 Post by JustinHanks » Sun Apr 02, 2017 11:21 pm

I'm trying to reduce the vertical space between load/save slots. Updating the values in gui.rpy did not help. I'm assuming the space is there because it's reserving a spot for the text, but I don't want the text beneath the image. How do I remove the gap? Thanks.
Attachments
gallery.png

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: Load Slot Vertical Spacing

#2 Post by indoneko » Mon Apr 03, 2017 9:11 am

If you're using the default load screen in screens.rpy, you can try to add this line into screen file_slot, inside the grid section (under the line style prefix "slot" ) :
yfill True

Then move down several lines until you find :

button:

and add this just below it :

y_margin -20
x_margin -10

You can change the number to suit your needs. You will also need to modify some other properties to make this work, because this method didn't actually remove the gap; it simply expands the button to fill it.
My avatar is courtesy of Mellanthe

JustinHanks
Newbie
Posts: 7
Joined: Tue Nov 01, 2016 12:31 pm
Contact:

Re: Load Slot Vertical Spacing

#3 Post by JustinHanks » Sat Apr 08, 2017 6:42 pm

It worked. Thank you!

Post Reply

Who is online

Users browsing this forum: Google [Bot]