From 586f44640881bbcfab456f98f50c00fc6e1826ab Mon Sep 17 00:00:00 2001 From: nutbuster Date: Sat, 3 Jul 2021 09:18:22 +1000 Subject: [PATCH] Delete Save System --- game/screens.rpy | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/game/screens.rpy b/game/screens.rpy index c08407d..faaa8b8 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -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