Code: Select all
##############################################################################
# Save, Load
#
# Screens that allow the user to save and load the game.
# http://www.renpy.org/doc/html/screen_special.html#save
# http://www.renpy.org/doc/html/screen_special.html#load
# Since saving and loading are so similar, we combine them into
# a single screen, file_picker. We then use the file_picker screen
# from simple load and save screens.
screen load_save_slot:
$ file_text = "{size=+4}{i}%s{/i}{/size}\n%s: %s" % (
FileSaveName(number),
FileSlotName(number, 4),
FileTime(number, format='%B %d, %Y \n (%I:%M%p)', empty=_("Empty Slot."))
)
add FileScreenshot(number) xpos 61 ypos 69
text file_text xpos 215 ypos 78 size 18 color "#261d0c"
screen file_picker:
imagemap:
ground "textbox/save_idle.png"
hover "textbox/save_hovered.png"
selected_idle "textbox/save_idle.png"
hotspot (801,17,24,34) clicked FilePage(1)
hotspot (830,17,24,34) clicked FilePage(2)
hotspot (864,17,25,34) clicked FilePage(3)
hotspot (896,17,24,34) clicked FilePage(4)
hotspot (928,17,24,34) clicked FilePage(5)
hotspot (962,17,23,34) clicked FilePage(6)
hotspot (993,17,25,34) clicked FilePage(7)
hotspot (1025,17,20,34) clicked FilePage(8)
hotspot (1057,17,26,34) clicked FilePage(9)
hotspot (1093,17,34,34) clicked FilePage(10)
hotspot (1139,17,27,34) clicked FilePage(11)
hotspot (1175,17,32,34) clicked FilePage(12)
hotspot (1219,17,30,34) clicked FilePage(13)
hotspot (47,71,424,287) clicked FileAction(1):
use load_save_slot(number=1)
hotspot (749,71,426,287) clicked FileAction(2):
use load_save_slot(number=2)
hotspot (47,405,424,288) clicked FileAction(3):
use load_save_slot(number=3)
hotspot (749,705,426,278) clicked FileAction(4):
use load_save_slot(number=4)
hotspot (524,104,166,80) action ShowMenu("load")
hotspot (524,229,166,67) action ShowMenu("save")
hotspot (482,342,253,63) action ShowMenu("Preferences")
hotspot (491,448,228,78) action Return()
hotspot (524,566,166,72) action Quit(confirm=True)
screen save:
# This ensures that any other menu screen is replaced.
tag menu
use file_picker
add "textbox/sl_save.png"
screen load:
# This ensures that any other menu screen is replaced.
tag menu
use file_picker
add "textbox/sl_load.png"
init -2 python:
style.file_picker_frame = Style(style.menu_frame)
style.file_picker_nav_button = Style(style.small_button)
style.file_picker_nav_button_text = Style(style.small_button_text)
style.file_picker_button = Style(style.large_button)
style.file_picker_text = Style(style.large_button_text)
config.thumbnail_width = 75
config.thumbnail_height = 42I know it's a lot...and I still have some screen shots... you can still see the background a bit and the ORIGNAL old usual ren'py save and load screen behind the customized one that I made.
