mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-02 06:46:34 +01:00
Ready to test the stuff for website
This commit is contained in:
parent
19b3b2ee0c
commit
e02118180e
1 changed files with 5 additions and 10 deletions
|
@ -2,14 +2,13 @@
|
||||||
init python:
|
init python:
|
||||||
def UpdateCheck():
|
def UpdateCheck():
|
||||||
renpy.notify("Updater Ran")
|
renpy.notify("Updater Ran")
|
||||||
#pendingVersion = updater.UpdateVersion("https://update.snootgame.xyz")
|
pendingVersion = updater.UpdateVersion("https://updates.snootgame.xyz/updates.json")
|
||||||
pendingVersion = "penis"
|
|
||||||
if pendingVersion == None:
|
if pendingVersion == None:
|
||||||
persistent.updateresult = "No New Version is Available"
|
persistent.updateresult = "No New Version is Available"
|
||||||
renpy.notify(persistent.updateresult)
|
renpy.notify(persistent.updateresult)
|
||||||
else:
|
else:
|
||||||
renpy.notify(persistent.updateresult + "can be downloaded")
|
renpy.notify(persistent.updateresult + "can be downloaded")
|
||||||
updater.update("https://update.snootgame.xyz/updates.json")
|
updater.Update("https://updates.snootgame.xyz/updates.json", force=True)
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
## Initialization
|
## Initialization
|
||||||
|
@ -725,20 +724,16 @@ screen updates():
|
||||||
## The use statement includes another screen inside this one. The actual
|
## The use statement includes another screen inside this one. The actual
|
||||||
## contents of the main menu are in the navigation screen.
|
## contents of the main menu are in the navigation screen.
|
||||||
|
|
||||||
##todo add size
|
|
||||||
##add gui.game_menu_background
|
|
||||||
vbox:
|
vbox:
|
||||||
xpos 1040
|
xpos 1140
|
||||||
# yalign 0.03
|
|
||||||
ypos 800
|
ypos 800
|
||||||
text _("UPDATES")
|
#text _("UPDATES")
|
||||||
label "[config.name!t]"
|
label "[config.name!t]"
|
||||||
text _("Your Version is [config.version!t]\n")
|
text _("Your Version is [config.version!t]\n")
|
||||||
##style_prefix "check"
|
##style_prefix "check"
|
||||||
label _("Auto Update")
|
label _("Auto Update")
|
||||||
#textbutton _("Enable Automatic Updates") action ToggleVariable("persistent.autoup", True, False)
|
#textbutton _("Enable Automatic Updates") action ToggleVariable("persistent.autoup", True, False)
|
||||||
#textbutton _("Update Now! (INVOKE)") action renpy.invoke_in_new_context(UpdateCheck)
|
textbutton _("Update Now!") action Function(UpdateCheck)
|
||||||
textbutton _("Update Now! (FUNCTION)") action Function(UpdateCheck)
|
|
||||||
label _("Update Result:\n")
|
label _("Update Result:\n")
|
||||||
text _("[persistent.updateresult!t]\n")
|
text _("[persistent.updateresult!t]\n")
|
||||||
textbutton "Back to Extras" action ShowMenu("extras")
|
textbutton "Back to Extras" action ShowMenu("extras")
|
||||||
|
|
Loading…
Reference in a new issue