Hopefully this is the right place to post such a thing, and apologies if a similar issue has been brought up before, as I tried my best to scour the forum for a solution that might help me.
I'm still new to creating custom screens in Ren'Py, so the solution to this might be really simple, too:
I'm in the middle of creating my save/load screens, and have ran into a frustrating issue where the save slots have a large gap between the columns, which makes working with them really difficult (there's a screenshot of how the issue looks below). I've spent a good few hours poking around with various options such as padding, alignment, offsetting, etc., (both in the style part and in the file_picker screen) but none of it seems to affect the space between the two columns, no matter what I do.
I'll include the code for the file_picker button and file_picker screen just in case you might see something that's interfering and causing the issue that I've missed:
Screen File_Picker
Code: Select all
screen file_picker:
frame:
style "file_picker_frame"
background "ui/prefs/filebase.png"
has vbox
# The buttons at the top allow the user to pick a
# page of files.
hbox xoffset 480 yoffset 70:
style_group "file_picker_nav"
textbutton _("Previous"):
action FilePagePrevious()
textbutton _("Auto"):
action FilePage("auto")
textbutton _("Quick"):
action FilePage("quick")
for i in range(1, 9):
textbutton str(i):
action FilePage(i)
textbutton _("Next"):
action FilePageNext()
$ columns = 2
$ rows = 5
# Display a grid of file slots.
grid columns rows:
transpose True
xfill True
style_group "file_picker"
xoffset 100
yoffset 80
# Display ten file slots, numbered 1 - 10.
for i in range(1, columns * rows + 1):
# Each file slot is a button.
button:
action FileAction(i)
#xfill True
has hbox
# Add the screenshot.
add FileScreenshot(i)
$ file_name = FileSlotName(i, columns * rows)
$ file_time = FileTime(i, empty=_("Empty Slot"))
$ save_name = FileSaveName(i)
text "[file_name]. [file_time!t]\n[save_name!t]"
key "save_delete" action FileDelete(i)
Code: Select all
init -2:
style file_picker_frame is menu_frame
style file_picker_nav_button:
is default
xpadding 8
style file_picker_nav_button_text is small_button_text
style file_picker_button:
xminimum 375
xmaximum 375
yminimum 95
style file_picker_text is large_button_text
Thanks for taking the time to go through this, and hopefully there's an easy enough solution!