Placeholder size of thumbnails does not change when saving.

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
suihakei
Newbie
Posts: 21
Joined: Sun Jun 23, 2019 12:12 pm
Contact:

Placeholder size of thumbnails does not change when saving.

#1 Post by suihakei »

I would like to create my own save and load page.
So I created the following code.

However, the size of the area where the thumbnails are displayed never reached 50*50.

I would like to display some other text, but images and such are sticking out of the screen.
How do I change the size of the thumbnail display area?

Please let me know what you think.

Code: Select all

screen save_load():
    add "screens/back.jpg"

    default page_name_value = FilePageNameInputValue(pattern=_("page {}"), auto=_("auto save"), quick=_("quick save"))

    fixed:
        grid 4 3:
            style_prefix "save_load_slot"

            xalign 0.5
            yalign 0.5

            for i in range(4 * 3):

                $ slot = i + 1

                hbox:
                    button:
                        action FileAction(slot)
                        has vbox
                        add FileScreenshot(slot) xalign 0.0 yalign 0.0 size(50, 50)


define gui.save_load_slot_width = 50
define gui.save_load_slot_height = 50
define gui.save_load_slot_borders = Borders(10, 10, 10, 10)
define gui.save_load_slot_outlines = (10, "#ff0000", 10, 10)
define gui.save_load_slot_text_size = 1
define gui.save_load_slot_text_xalign = 0.5
define gui.save_load_slot_muted_color = u'#888888'
define gui.save_load_slot_text_idle_color = u'#888888'
define gui.save_load_slot_text_selected_idle_color = u'#888888'
define gui.save_load_slot_text_selected_hover_color = u'#888888'

style save_load_slot:
    properties gui.button_properties("save_load_slot")

Post Reply

Who is online

Users browsing this forum: No registered users