forked from SilverStudioGames/WTS
Android flickering fix
* Removed permission request for external storage (not functional since API level 30) * Fixed flickering on android devices (caused by the above)
This commit is contained in:
parent
69dca4ffcd
commit
37d481ea08
@ -278,7 +278,7 @@ screen navigation(title=None):
|
|||||||
textbutton _("Preferences") action ShowMenu("preferences") sensitive is_sensitive
|
textbutton _("Preferences") action ShowMenu("preferences") sensitive is_sensitive
|
||||||
|
|
||||||
if main_menu:
|
if main_menu:
|
||||||
textbutton _("Mods") sensitive (bool(mods_list) and is_sensitive) action If(AskPermission("android.permission.WRITE_EXTERNAL_STORAGE"), ShowMenu("mods"), Function(renpy.notify, "Please grant storage permissions to enable modding functionality."))
|
textbutton _("Mods") sensitive (bool(mods_list) and is_sensitive) action ShowMenu("mods")
|
||||||
textbutton _("Credits") action Jump("credits") sensitive is_sensitive
|
textbutton _("Credits") action Jump("credits") sensitive is_sensitive
|
||||||
if not renpy.mobile:
|
if not renpy.mobile:
|
||||||
textbutton _("Quit") action Quit(confirm=not main_menu) sensitive is_sensitive
|
textbutton _("Quit") action Quit(confirm=not main_menu) sensitive is_sensitive
|
||||||
|
@ -89,4 +89,4 @@ init python:
|
|||||||
if not renpy.android:
|
if not renpy.android:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return renpy.android and (renpy.check_permission(self.name) or renpy.request_permission(self.name))
|
return (renpy.check_permission(self.name) or renpy.request_permission(self.name))
|
||||||
|
@ -147,6 +147,7 @@ define config.profile = False
|
|||||||
|
|
||||||
init python:
|
init python:
|
||||||
build.name = "WTS"
|
build.name = "WTS"
|
||||||
|
build.directory_name = f"WTS-{config.version}"
|
||||||
build.include_update = True
|
build.include_update = True
|
||||||
build.include_old_themes = False
|
build.include_old_themes = False
|
||||||
build.exclude_empty_directories = True
|
build.exclude_empty_directories = True
|
||||||
@ -185,4 +186,4 @@ init python:
|
|||||||
build.classify("game/saves/**", None)
|
build.classify("game/saves/**", None)
|
||||||
build.classify("game/mods/**", None)
|
build.classify("game/mods/**", None)
|
||||||
|
|
||||||
build.android_permissions = ["android.permission.WRITE_EXTERNAL_STORAGE"]
|
# build.android_permissions = ["android.permission.WRITE_EXTERNAL_STORAGE"] # Not functional since API level 30+
|
||||||
|
Loading…
Reference in New Issue
Block a user