diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-08 00:48:11 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-08 00:48:11 -0300 |
commit | dcd375a3f945a6ec6d021fa346dd5dae41680cb3 (patch) | |
tree | ddd8c322a7fa19bf6468d4ae8f90c6a432ac1e74 | |
parent | cbe3b1e1d15feb72d3df62f5cc2629c6da201651 (diff) | |
download | renpy-dcd375a3f945a6ec6d021fa346dd5dae41680cb3.tar.gz renpy-dcd375a3f945a6ec6d021fa346dd5dae41680cb3.tar.bz2 renpy-dcd375a3f945a6ec6d021fa346dd5dae41680cb3.tar.xz renpy-dcd375a3f945a6ec6d021fa346dd5dae41680cb3.zip |
Get rid of save/load screens
-rw-r--r-- | game/discord.rpy | 3 | ||||
-rw-r--r-- | game/screens.rpy | 84 |
2 files changed, 5 insertions, 82 deletions
diff --git a/game/discord.rpy b/game/discord.rpy index 5e914f3..3160158 100644 --- a/game/discord.rpy +++ b/game/discord.rpy @@ -2,7 +2,8 @@ # This file is part of Mana Launcher. # Copyright (C) 2021 Jesusalva <jesusalva@tmw2.org> # -# Distributed under the MIT license. +# Credits: https://arianeb.com/2019/07/19/adding-discord-rich-presence-to-renpy-games/ +# Note: Likely no license applicable. ################################################################################# init -2 python: diff --git a/game/screens.rpy b/game/screens.rpy index 1eaa980..b844630 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -258,8 +258,6 @@ screen quick_menu(): textbutton _("Skip") action Skip() alternate Skip(fast=True, confirm=True) textbutton _("Auto") action Preference("auto-forward", "toggle") textbutton _("Save") action ShowMenu('save') - textbutton _("Q.Save") action QuickSave() - textbutton _("Q.Load") action QuickLoad() textbutton _("Prefs") action ShowMenu('preferences') @@ -307,9 +305,6 @@ screen navigation(): textbutton _("History") action ShowMenu("history") - textbutton _("Save") action ShowMenu("save") - - textbutton _("Load") action ShowMenu("load") textbutton _("Preferences") action ShowMenu("preferences") @@ -587,90 +582,17 @@ screen save(): tag menu - use file_slots(_("Save")) - + use navigation screen load(): tag menu - use file_slots(_("Load")) - + use navigation screen file_slots(title): - default page_name_value = FilePageNameInputValue(pattern=_("Page {}"), auto=_("Automatic saves"), quick=_("Quick saves")) - - use game_menu(title): - - fixed: - - ## This ensures the input will get the enter event before any of the - ## buttons do. - order_reverse True - - ## The page name, which can be edited by clicking on a button. - button: - style "page_label" - - key_events True - xalign 0.5 - action page_name_value.Toggle() - - input: - style "page_label_text" - value page_name_value - - ## The grid of file slots. - grid gui.file_slot_cols gui.file_slot_rows: - style_prefix "slot" - - xalign 0.5 - yalign 0.5 - - spacing gui.slot_spacing - - for i in range(gui.file_slot_cols * gui.file_slot_rows): - - $ slot = i + 1 - - button: - action FileAction(slot) - - has vbox - - add FileScreenshot(slot) xalign 0.5 - - text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), empty=_("empty slot")): - style "slot_time_text" - - text FileSaveName(slot): - style "slot_name_text" - - key "save_delete" action FileDelete(slot) - - ## Buttons to access other pages. - hbox: - style_prefix "page" - - xalign 0.5 - yalign 1.0 - - spacing gui.page_spacing - - textbutton _("<") action FilePagePrevious() - - if config.has_autosave: - textbutton _("{#auto_page}A") action FilePage("auto") - - if config.has_quicksave: - textbutton _("{#quick_page}Q") action FilePage("quick") - - ## range(1, 10) gives the numbers from 1 to 9. - for page in range(1, 10): - textbutton "[page]" action FilePage(page) - - textbutton _(">") action FilePageNext() + textbutton (title) action None style page_label is gui_label |