mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-01-22 17:26:20 +01:00
Merge branch 'master' of https://git.snootgame.xyz/Cavemanon/SnootGame
This commit is contained in:
commit
d9de78e09f
2 changed files with 30 additions and 9 deletions
|
@ -23,7 +23,7 @@ define gui.show_name = True
|
|||
|
||||
## 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
|
||||
## triple-quotes, and leave a blank line between paragraphs.
|
||||
|
|
|
@ -730,21 +730,42 @@ screen updates():
|
|||
|
||||
vbox:
|
||||
xpos 1140
|
||||
ypos 800
|
||||
#text _("UPDATES")
|
||||
label "[config.name!t]"
|
||||
text _("Your Version is [config.version!t]\n")
|
||||
##style_prefix "check"
|
||||
ypos 900
|
||||
label _("{color=#5D009C}[config.name!t]{/color}")
|
||||
text _("{color=#5D009C}Your Version is [config.version!t]\n{/color}")
|
||||
if updater.can_update():
|
||||
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)]
|
||||
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)]
|
||||
label _("Update Check Result:\n")
|
||||
text _("[persistent.updateresult!t]\n")
|
||||
label _("{color=#5D009C}Update Check Result:\n{/color}")
|
||||
text _("{color=#5D009C}[persistent.updateresult!t]\n{/color}")
|
||||
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 _("{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")
|
||||
|
||||
vbox:
|
||||
xpos 1942
|
||||
# xalign 1.0
|
||||
|
|
Loading…
Reference in a new issue