This is how I'd like to make it look and what I currently have. As you will see, it's a mess.
I've been reading previous posts about how to store the player's name for each save but honestly I didn't understand it, and copy-pasting random code on my game didn't work. I still have no idea how to show each page-slot number, and I guess that's already stored in the game. I can't make empty slots look empty (I forgot to delete the "empty slot" code when I took the screenshot), and lastly, since everything is in a vbox, things move up and down depending on how much space previous thing take. I'd like them to be at a specific place regardles of other things.
This is my code so far:
Code: Select all
grid gui.file_slot_cols gui.file_slot_rows:
style_prefix "slot"
xalign 0.5
yalign 0.44
spacing gui.slot_spacing
for i in range(gui.file_slot_cols * gui.file_slot_rows):
$ slot = i + 1
button:
if persistent.saveName:
action If(renpy.get_screen("save"), true=Show("savegameName", accept=FileSave(slot)), false=FileLoad(slot))
else:
action FileAction(slot)
hbox:
add FileScreenshot(slot) xalign 0.5
vbox xpos 7:
text "{size=38}[mc]":
style "slot_name_text"
text "{size=28}P-S":
xpos 285
ypos -35
style "slot_name_text"
if FileSaveName(slot):
$ fn = FileSaveName(slot)
if fn and ("-" in fn):
$ y = fn.split("-")
text fn:
style "slot_name_text"
text FileTime(slot, format=_("{size=20}{#file_time}%A, %B %d %Y, %H:%M")):
style "slot_time_text"
hbox:
text "{size=20}[config.name!t]":
style "slot_time_text"
text " "
text "{size=20}v{#file_version}[config.version!t]":
style "slot_time_text"
key "save_delete" action FileDelete(slot)