640 x 480 save slots

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
mikey
Lemma-Class Veteran
Posts: 3249
Joined: Sat Jan 10, 2004 6:03 am
itch: atpprojects
Contact:

640 x 480 save slots

#1 Post by mikey »

My project has a 640x 480 resolution. All is working nicely, except for the save/load menu. It goes like this:

Normally, RenPy 4.4 has several pages of save slots and on each page there is what 10 save slots or so. Okay. I changed the resolution and changed the maximum width of one save slot from 400 to 320. Which works nicely, but now there are only two save slots on one page, although there would be room for much more

Looks something like this in 800*600
------------------------------------------
1 2 3 4 5
SaveSlot 1...............SaveSlot2
SaveSlot 3...............SaveSlot4
SaveSlot 5...............SaveSlot6
SaveSlot 7...............SaveSlot8

...................................Resume
...................................Load
...................................Save
...................................Quit


Looks something like this in 640*480
------------------------------------------
1 2 3 4 5
SaveSlot 1...............SaveSlot2




...................................Resume
...................................Load
...................................Save
...................................Quit


Is there a way to fix it? To simulate this, just change the resolution. :?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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:

#2 Post by PyTom »

Hm... I tried this, and while I got the first picture (more or less), I didn't get the second one.

I did manage to come up with a good-looking file picker for a game that's running at 640x480. The only relevant code I had atop a stock 4.4 is:

Code: Select all

init:
    # Basic configuration.
    $ config.screen_width = 640
    $ config.screen_height = 480
    $ config.window_title = 'Moonlight Walks'

    $ style.file_picker_entry.xminimum = 320
    $ library.thumbnail_width = 60
    $ library.thumbnail_height = 45

    # Change font sizes.
    $ style.file_picker_text.size = 14
    $ style.default.size = 20
    $ style.button_text.size = 20
This works for me. If it's not working for you, I'd check to be sure that library.file_page_length is removed from the script, and if it has been and it's still broken, please send me a script fragement.

Thanks.

User avatar
mikey
Lemma-Class Veteran
Posts: 3249
Joined: Sat Jan 10, 2004 6:03 am
itch: atpprojects
Contact:

#3 Post by mikey »

Okay, I've tried it, but no effect. Still, I will find time to play around, so if I'm not successful, I'll send you the files. No rush though. Thanks for the support.

Post Reply

Who is online

Users browsing this forum: No registered users