diff --git a/game/gui.rpy b/game/gui.rpy index 9c6914f..1673e45 100644 --- a/game/gui.rpy +++ b/game/gui.rpy @@ -23,10 +23,10 @@ init python: ## The colors of text in the interface. ## An accent color used throughout the interface to label and highlight text. -define gui.accent_color = '#FF00FC' +define gui.accent_color = '#A2029F' ## The color used for a text button when it is neither selected nor hovered. -define gui.idle_color = '#FFFE00' +define gui.idle_color = '#D5D507' ## The small color is used for small text, which needs to be brighter/darker to ## achieve the same effect. diff --git a/game/screens.rpy b/game/screens.rpy index 1576c87..53bb0a1 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -16,6 +16,9 @@ init python: else: persistent.updateresult = pendingVersion + def ToggleAutoUpdate(): + persistent.autoup = not persistent.autoup + ################################################################################ ## Initialization ################################################################################ @@ -665,34 +668,40 @@ screen updates(): xoffset 80 xmaximum 1100 label "[config.name!t]" - text _("Version [config.version!t]\n") + text _("Version [config.version!t]") if updater.can_update(): - label _("{color=#00FF00}Update directory exists, updating is possible!{/color}") + label _("{color=#00FF00}{size=32}Update directory exists, updating is possible!\n{/size}{/color}") else: - label _("{color=#FF0000}Update directory does not exist or is corrupt!{/color}") - textbutton _("Enable Automatic Updates") action [Notify("Toggling Automatic Updates..."), ToggleVariable("persistent.autoup", True, False)] - text _("Automatic Updates: [persistent.autoup!t]\n") - textbutton _("Check for Update!") action [Notify("Checking for update..."), Function(UpdateCheck)] - label _("Update Check Result:\n") - text _("[persistent.updateresult!t]\n") - if persistent.updateresult != "No new version is available": - textbutton _("Update Now!") action updater.Update(persistent.updateWebServer, force=False) - else: - textbutton _("Update Now!") action Notify("Nothing to update to!") - label _("Update Server:\n") + label _("{color=#FF0000}{size=32}Update directory does not exist or is corrupt!\n{/size}{/color}") + + label _("Auto Update:") + label _("{color=#FFFFFF}{size=32}Automatic Updates: [persistent.autoup!t]{/size}{/color}") + textbutton _("{size=36}Toggle Automatic Updates\n{/size}") action [Notify("Toggling Automatic Updates..."), Function(ToggleAutoUpdate)] + + label _("Update Checker:") + label _("{color=#FFFFFF}{size=32}[persistent.updateresult!t]{/size}{/color}") + textbutton _("{size=36}Check for Update\n{/size}") action [Notify("Checking for update..."), Function(UpdateCheck)] + + label _("Updater:") + label _("{color=#FFFFFF}{size=32}Server URL (click to edit):{/size}{/color}") default input_on = False button: key_events True if input_on: input: - default "[persistent.updateWebServer!t]" size 24 color '#FFFFFF' + default "[persistent.updateWebServer!t]" size 36 color '#FFFFFF' value FieldInputValue(persistent, 'updateWebServer') length 49 copypaste True else: - text persistent.updateWebServer size 24 color '#FFFF00' + text persistent.updateWebServer size 36 color '#FFFF00' action ToggleScreenVariable('input_on') style_prefix "quick" + if persistent.updateresult != "No new version is available": + textbutton _("{size=36}Update Now!\n{/size}") action updater.Update(persistent.updateWebServer, force=False) + else: + textbutton _("{size=36}Update Now!\n{/size}") action Notify("Nothing to update to!") + use extrasnavigation ## Load and Save screens #######################################################