mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-24 02:28:51 +01:00
Bring edgescroll toggling from Wani
This commit is contained in:
parent
963851af8e
commit
7309c68119
3 changed files with 7 additions and 1 deletions
|
@ -139,6 +139,7 @@ default persistent.enable_debug_scores = config.developer
|
|||
default persistent.enable_chapter_select = config.developer
|
||||
default persistent.lewd = False
|
||||
default persistent.autoup = False
|
||||
default persistent.gallery_edgescroll = True
|
||||
|
||||
init python:
|
||||
# No idea what this does
|
||||
|
|
|
@ -1012,6 +1012,11 @@ screen preferences():
|
|||
else:
|
||||
$ debug_story_variables(False)
|
||||
|
||||
vbox:
|
||||
style_prefix "check"
|
||||
label _("Gallery")
|
||||
textbutton _("Enable Edgescrolling") action [Function(onclick_audio, persistent.gallery_edgescroll), ToggleVariable("persistent.gallery_edgescroll", True, False)]
|
||||
|
||||
vbox:
|
||||
xsize 676
|
||||
style_prefix "check"
|
||||
|
|
|
@ -211,7 +211,7 @@ screen view_image(item, _origin):
|
|||
viewport id "vie":
|
||||
#Ren'Py isn't smart enough to not edgescroll while pressed,
|
||||
#so we'll have to disable this for mobile
|
||||
if renpy.variant("pc"):
|
||||
if renpy.variant("pc") and persistent.gallery_edgescroll:
|
||||
edgescroll (300, 1800)
|
||||
draggable True
|
||||
arrowkeys True
|
||||
|
|
Loading…
Reference in a new issue