From 42c05f0cbf2c54a6dc33d9758f385a066ad3fb15 Mon Sep 17 00:00:00 2001 From: Map Date: Sat, 5 Oct 2024 09:19:47 -0500 Subject: [PATCH] Bring renpy sync back --- game/screens.rpy | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/game/screens.rpy b/game/screens.rpy index dcf19df..54b0670 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -893,27 +893,39 @@ screen file_slots(title, flag=False): key "save_delete" action FileDelete(slot) ## Buttons to access other pages. - hbox: + vbox: style_prefix "page" xalign 0.5 yalign 1.0 + hbox: + xalign 0.5 - spacing gui.page_spacing + spacing gui.page_spacing - textbutton _("<") activate_sound "audio/ui/uiRollover.wav" action FilePagePrevious() + textbutton _("<") activate_sound "audio/ui/uiRollover.wav" action FilePagePrevious() - if config.has_autosave: - textbutton _("{#auto_page}A") activate_sound "audio/ui/uiClick.wav" action FilePage("auto") + if config.has_autosave: + textbutton _("{#auto_page}A") activate_sound "audio/ui/uiClick.wav" action FilePage("auto") - if config.has_quicksave: - textbutton _("{#quick_page}Q") activate_sound "audio/ui/uiClick.wav" action FilePage("quick") + if config.has_quicksave: + textbutton _("{#quick_page}Q") activate_sound "audio/ui/uiClick.wav" action FilePage("quick") - ## range(1, 10) gives the numbers from 1 to 9. - for page in range(1, 10): - textbutton "[page]" activate_sound "audio/ui/uiClick.wav" action FilePage(page) + ## range(1, 10) gives the numbers from 1 to 9. + for page in range(1, 10): + textbutton "[page]" activate_sound "audio/ui/uiClick.wav" action FilePage(page) - textbutton _(">") activate_sound "audio/ui/uiRollover.wav" action FilePageNext(max=9) + textbutton _(">") activate_sound "audio/ui/uiRollover.wav" action FilePageNext(max=9) + + if config.has_sync: + if CurrentScreenName() == "save": + textbutton _("Upload Sync"): + action UploadSync() + xalign 0.5 + else: + textbutton _("Download Sync"): + action DownloadSync() + xalign 0.5 style page_label is gui_label