Delete Save System

This commit is contained in:
Nutbuster 2021-07-03 09:18:22 +10:00
parent f789c784d8
commit 586f446408
1 changed files with 11 additions and 2 deletions

View File

@ -335,6 +335,7 @@ screen navigation():
textbutton _("History") action ShowMenu("history")
textbutton _("Save") action ShowMenu("save")
textbutton _("Load") action ShowMenu("load")
textbutton _("Delete") action ShowMenu("delete")
textbutton _("Options") action ShowMenu("preferences")
textbutton _("Extras") action ShowMenu("extras")
textbutton _("Return") action Return()
@ -734,8 +735,13 @@ screen load():
use file_slots(_("Load"))
screen delete():
screen file_slots(title):
tag menu
use file_slots(_("Delete"), True)
screen file_slots(title, flag=False):
default page_name_value = FilePageNameInputValue(pattern=_("Page {}"), auto=_("Automatic saves"), quick=_("Quick saves"))
@ -773,7 +779,10 @@ screen file_slots(title):
$ slot = i + 1
button:
action FileAction(slot)
if flag:
action FileDelete(slot)
else:
action FileAction(slot)
has vbox