I tried everything I could to fix this issue, but to no avail, so I decided I'd make a forum post regarding this issue as I'm clearly missing something...
Here's my code: (I've also tried to put the key "save_delete" action FileDelete(number) under the screen_file_picker but it didn't make any difference.)
Code: Select all
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 15 ypos 8
text file_text xpos 20 ypos 105 size 18 color "#ffffff"
key "save_delete" action FileDelete(number)
screen file_picker:
key "m" action MainMenu(confirm=True)
key "p" action ShowMenu("preferences")
key "K_ESCAPE" action Return()
imagemap:
ground "lc_saveloadscreen_ground.png"
idle "lc_saveloadscreen_idle.png"
hover "lc_saveloadscreen_hover.png"
selected_idle "lc_saveloadscreen_idle.png"
hotspot (550, 23, 41, 55) clicked FilePage(1)
hotspot (594, 23, 46, 55) clicked FilePage(2)
hotspot (643, 23, 41, 55) clicked FilePage(3)
hotspot (688, 23, 39, 55) clicked FilePage(4)
hotspot (732, 23, 41, 55) clicked FilePage(5)
hotspot (777, 23, 42, 55) clicked FilePage(6)
hotspot (823, 23, 41, 55) clicked FilePage(7)
hotspot (869, 23, 39, 55) clicked FilePage(8)
hotspot (909, 23, 40, 55) clicked FilePage(9)
hotspot (952, 23, 60, 55) clicked FilePage(10)
hotspot (123, 158, 328, 202) clicked FileAction(1):
use load_save_slot(number=1)
hotspot (567, 158, 328, 201) clicked FileAction(2):
use load_save_slot(number=2)
hotspot (123, 421, 329, 200) clicked FileAction(3):
use load_save_slot(number=3)
hotspot (567, 420, 329, 202) clicked FileAction(4):
use load_save_slot(number=4)
hotspot (628, 659, 89, 62) action Quit()
hotspot (478, 659, 107, 62) action MainMenu()
hotspot (300, 660, 130, 61) action Return()
screen save:
key "s" action Return()
# This ensures that any other menu screen is replaced.
tag menu
use file_picker
add "lc_savegame.png"
screen load:
key "l" action Return()
# This ensures that any other menu screen is replaced.
tag menu
use file_picker
add "lc_loadgame.png"