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")