mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-02 06:46:34 +01:00
Worked a little on the code, its absolutely broken. Going to ask for help
This commit is contained in:
parent
203077c184
commit
397de2b950
2 changed files with 17 additions and 7 deletions
|
@ -723,8 +723,8 @@ screen updates():
|
||||||
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!") ##action ("persistent.autoup", True, False) This should also set the value of updateresults
|
textbutton _("Update Now!") action 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")
|
||||||
|
@ -1244,11 +1244,11 @@ screen extrasnavigation():
|
||||||
# xpos 590
|
# xpos 590
|
||||||
xalign 0.79
|
xalign 0.79
|
||||||
yalign 1.0 #0.9
|
yalign 1.0 #0.9
|
||||||
imagebutton auto "gui/button/menubuttons/helpbutton_%s.png" action ShowMenu("help")
|
imagebutton auto "gui/button/menubuttons/helpbutton_%s.png" action ShowMenu('help')
|
||||||
imagebutton auto "gui/button/menubuttons/aboutbutton_%s.png" action ShowMenu("about")
|
imagebutton auto "gui/button/menubuttons/aboutbutton_%s.png" action ShowMenu('about')
|
||||||
imagebutton auto "gui/button/menubuttons/updatesbutton_%s.png" action ShowMenu("updates")
|
imagebutton auto "gui/button/menubuttons/updatesbutton_%s.png" action ShowMenu('updates')
|
||||||
imagebutton auto "gui/button/menubuttons/gallerybutton_%s.png" action ShowMenu("gallery")
|
imagebutton auto "gui/button/menubuttons/gallerybutton_%s.png" action ShowMenu('gallery')
|
||||||
imagebutton auto "gui/button/menubuttons/returnbutton_%s.png" action ShowMenu("main_menu")
|
imagebutton auto "gui/button/menubuttons/returnbutton_%s.png" action ShowMenu('main_menu')
|
||||||
|
|
||||||
|
|
||||||
## Help screen #################################################################
|
## Help screen #################################################################
|
||||||
|
|
10
game/update.rpy
Normal file
10
game/update.rpy
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
init python:
|
||||||
|
def UpdateCheck():
|
||||||
|
renpy.notify("Updater Ran")
|
||||||
|
pendingVersion = updater.UpdateVersion("https://update.snootgame.xyz", simulate="Monster-Update-6")
|
||||||
|
if pendingVersion == None:
|
||||||
|
persistent.updateresult = "No New Version is Available"
|
||||||
|
#renpy.notify(persistent.updateresult)
|
||||||
|
else:
|
||||||
|
#renpy.notify(persistent.updateresult + "can be downloaded")
|
||||||
|
updater.update("https://update.snootgame.xyz/updates.json", force=True)
|
Loading…
Reference in a new issue