mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-24 18:48:55 +01:00
Remove updates func and menu from mobile
This commit is contained in:
parent
66c0dc8d80
commit
c9b7222d13
1 changed files with 39 additions and 16 deletions
|
@ -1,23 +1,24 @@
|
||||||
###Updater Python stuff###
|
###Updater Python stuff###
|
||||||
init python:
|
init python:
|
||||||
if persistent.updateresult is None:
|
if renpy.variant("pc"): #Don't run this on mobile, not supported
|
||||||
persistent.updateresult = "No new version is available"
|
if persistent.updateresult is None:
|
||||||
if persistent.autoup is None:
|
persistent.updateresult = "No new version is available"
|
||||||
persistent.autoup = False
|
if persistent.autoup is None:
|
||||||
if persistent.updateWebServer is None:
|
persistent.autoup = False
|
||||||
persistent.updateWebServer = "http://updates.snootgame.xyz/updates.json"
|
if persistent.updateWebServer is None:
|
||||||
|
persistent.updateWebServer = "http://updates.snootgame.xyz/updates.json"
|
||||||
|
|
||||||
def UpdateCheck():
|
def UpdateCheck():
|
||||||
# WHY YES I ONLY ALLOW PEOPLE USING MY FRAMEWORK TO CHECK FOR AN UPDATE EVERY SIX FUCKING HOURS HOW DID YOU KNOW
|
# WHY YES I ONLY ALLOW PEOPLE USING MY FRAMEWORK TO CHECK FOR AN UPDATE EVERY SIX FUCKING HOURS HOW DID YOU KNOW
|
||||||
# NOPE check_interval=5 (5 SECONDS) FUCK YOU
|
# NOPE check_interval=5 (5 SECONDS) FUCK YOU
|
||||||
pendingVersion = updater.UpdateVersion(persistent.updateWebServer, check_interval=5)
|
pendingVersion = updater.UpdateVersion(persistent.updateWebServer, check_interval=5)
|
||||||
if pendingVersion == None or pendingVersion == config.version or "TEST" in pendingVersion:
|
if pendingVersion == None or pendingVersion == config.version or "TEST" in pendingVersion:
|
||||||
persistent.updateresult = "No new version is available"
|
persistent.updateresult = "No new version is available"
|
||||||
else:
|
else:
|
||||||
persistent.updateresult = pendingVersion
|
persistent.updateresult = pendingVersion
|
||||||
|
|
||||||
def ToggleAutoUpdate():
|
def ToggleAutoUpdate():
|
||||||
persistent.autoup = not persistent.autoup
|
persistent.autoup = not persistent.autoup
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
## Initialization
|
## Initialization
|
||||||
|
@ -1641,6 +1642,28 @@ screen quick_menu():
|
||||||
[ "Menu", ShowMenu() ] \
|
[ "Menu", ShowMenu() ] \
|
||||||
] )
|
] )
|
||||||
|
|
||||||
|
screen extrasnavigation(): #Updates are removed (not even supported by Ren'Py)
|
||||||
|
variant "small"
|
||||||
|
vbox:
|
||||||
|
xpos 1940
|
||||||
|
yalign 0.03
|
||||||
|
|
||||||
|
if persistent.splashtype == 1:
|
||||||
|
add "gui/sneedgame.png"
|
||||||
|
else:
|
||||||
|
add "gui/snootgame.png"
|
||||||
|
vbox:
|
||||||
|
spacing 25
|
||||||
|
xpos 1885
|
||||||
|
yalign 0.9
|
||||||
|
use main_menu_buttons("gui/button/menubuttons/template_idle.png",
|
||||||
|
[
|
||||||
|
[ "Help", ShowMenu("help") ],
|
||||||
|
[ "About", ShowMenu("about") ],
|
||||||
|
[ "Gallery", ShowMenu("cg_gallery_0") ],
|
||||||
|
[ "Return", ShowMenu("main_menu") ]
|
||||||
|
] )
|
||||||
|
|
||||||
style radio_button:
|
style radio_button:
|
||||||
variant "small"
|
variant "small"
|
||||||
foreground "gui/phone/button/radio_[prefix_]foreground.png"
|
foreground "gui/phone/button/radio_[prefix_]foreground.png"
|
||||||
|
|
Loading…
Reference in a new issue