This commit is contained in:
nutbuster 2021-07-14 11:23:06 +10:00
commit d9de78e09f
2 changed files with 30 additions and 9 deletions

View file

@ -23,7 +23,7 @@ define gui.show_name = True
## The version of the game. ## The version of the game.
define config.version = "Patchy-patch5.11" define config.version = "Patchy-patch5.1.1"
## Text that is placed on the game's about screen. Place the text between the ## Text that is placed on the game's about screen. Place the text between the
## triple-quotes, and leave a blank line between paragraphs. ## triple-quotes, and leave a blank line between paragraphs.

View file

@ -730,21 +730,42 @@ screen updates():
vbox: vbox:
xpos 1140 xpos 1140
ypos 800 ypos 900
#text _("UPDATES") label _("{color=#5D009C}[config.name!t]{/color}")
label "[config.name!t]" text _("{color=#5D009C}Your Version is [config.version!t]\n{/color}")
text _("Your Version is [config.version!t]\n") if updater.can_update():
##style_prefix "check" label _("{color=#5D009C}{size=26}Update directory exists, updating is possible!{/size}{/color}")
else:
label _("{color=#5D009C}{size=26}Update directory does not exist or is corrupt!{/size}")
textbutton _("Enable Automatic Updates") action [Notify("Toggling Automatic Updates..."), ToggleVariable("persistent.autoup", True, False)] textbutton _("Enable Automatic Updates") action [Notify("Toggling Automatic Updates..."), ToggleVariable("persistent.autoup", True, False)]
text _("Automatic Updates: [persistent.autoup!t]\n") text _("{color=#5D009C}Automatic Updates: [persistent.autoup!t]\n{/color}")
textbutton _("Check for Update!") action [Notify("Checking for update..."), Function(UpdateCheck)] textbutton _("Check for Update!") action [Notify("Checking for update..."), Function(UpdateCheck)]
label _("Update Check Result:\n") label _("{color=#5D009C}Update Check Result:\n{/color}")
text _("[persistent.updateresult!t]\n") text _("{color=#5D009C}[persistent.updateresult!t]\n{/color}")
if persistent.updateresult != "No new version is available": if persistent.updateresult != "No new version is available":
textbutton _("Update Now!") action updater.Update(persistent.updateWebServer, force=False) textbutton _("Update Now!") action updater.Update(persistent.updateWebServer, force=False)
else: else:
textbutton _("Update Now!") action Notify("Nothing to update to!") textbutton _("Update Now!") action Notify("Nothing to update to!")
label _("{color=#5D009C}Update Server:\n{/color}")
default input_on = False
button:
key_events True
if input_on:
input:
default "[persistent.updateWebServer!t]" size 20 color '#FFFFFF'
value FieldInputValue(persistent, 'updateWebServer')
length 49
copypaste True
else:
text persistent.updateWebServer size 20 color '#FFFF00'
action ToggleScreenVariable('input_on')
textbutton "Back to Extras" action ShowMenu("extras") textbutton "Back to Extras" action ShowMenu("extras")
vbox: vbox:
xpos 1942 xpos 1942
# xalign 1.0 # xalign 1.0