Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Save, Load
- ## Screens that allow the user to save and load the game.
- ##Save screen starts here
- screen save:
- # This ensures that any other menu screen is replaced.
- tag menu
- ##Code to add a background image in the save screen
- add "GUI/prefs screen/prefs_bg.png"
- ##Code for save screen imagemap
- imagemap:
- ground "GUI/sl/sl_ground.png"
- idle "GUI/sl/sl_idle.png"
- hover "GUI/sl/sl_hover.png"
- cache False
- hotspot (746,67,51,45) clicked FilePage(1) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (747,122,50,43) clicked FilePage(2) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (747,175,50,46) clicked FilePage(3) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (748,231,50,43) clicked FilePage(4) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (750,284,45,45) clicked FilePage(5) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (749,338,47,47) clicked FilePage(6) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (749,390,47,45) clicked FilePage(7) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (750,446,47,42) clicked FilePage(8) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (750,500,46,44) clicked FilePage(9) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (64,127,301,159) clicked FileSave(1):
- use load_save_slot(number=1) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (422,127,303,159) clicked FileSave(2):
- use load_save_slot(number=2) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (63,346,303,156) clicked FileSave(3):
- use load_save_slot(number=3) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (424,343,300,158) clicked FileSave(4):
- use load_save_slot(number=4) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (748,1,48,47) action Return() activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- ##Load screen starts here
- screen load:
- # This ensures that any other menu screen is replaced.
- tag menu
- ##Code to add a background image in the load screen
- add "GUI/prefs screen/prefs_bg.png"
- ##Code for load screen imagemap
- imagemap:
- ground "GUI/sl/sl_ground.png"
- idle "GUI/sl/sl_idle.png"
- hover "GUI/sl/sl_hover.png"
- cache False
- hotspot (746,67,51,45) clicked FilePage(1) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (747,122,50,43) clicked FilePage(2) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (747,175,50,46) clicked FilePage(3) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (748,231,50,43) clicked FilePage(4) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (750,284,45,45) clicked FilePage(5) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (749,338,47,47) clicked FilePage(6) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (749,390,47,45) clicked FilePage(7) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (750,446,47,42) clicked FilePage(8) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (750,500,46,44) clicked FilePage(9) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (64,127,301,159) clicked FileLoad(1):
- use load_save_slot(number=1) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (422,127,303,159) clicked FileLoad(2):
- use load_save_slot(number=2) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (63,346,303,156) clicked FileLoad(3):
- use load_save_slot(number=3) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (424,343,300,158) clicked FileLoad(4):
- use load_save_slot(number=4) activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- hotspot (748,1,48,47) action Return() activate_sound "GUI/sl/save-activate.mp3" hover_sound "GUI/sl/save-hover.mp3"
- ##Code to customize the save slots in the save menu
- screen load_save_slot:
- #shows information in the save slot about the saved game file
- $ file_text = "% 2s. %s\n%s" % (
- FileSlotName(number, 4),
- FileTime(number, empty=_("Empty Slot")),
- FileSaveName(number))
- #shows a screenshot of the saved game in the save slot
- add FileScreenshot(number) xpos 220 ypos 20
- text file_text xpos 0 ypos 10 size 40 color "#ffffff" outlines [ (2, "#302B54") ] kerning 2 font "GUI/sl/Passing Notes.ttf"
- key "save_delete" action FileDelete(number) #allows the player to delete a saved game file
- init -2 python:
- config.thumbnail_width = 180 #width of saved game screenshot to appear in the save slot
- config.thumbnail_height = 150 #height of saved game screenshot to appear in the save slot
Advertisement
Add Comment
Please, Sign In to add comment