mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-02-02 06:46:34 +01:00
Disable Zoom
This commit is contained in:
parent
914dd89b02
commit
795a58e5ca
1 changed files with 9 additions and 7 deletions
|
@ -1,6 +1,7 @@
|
||||||
init python:
|
init python:
|
||||||
|
|
||||||
# CONST PARAMS
|
# CONST PARAMS
|
||||||
|
ALLOW_ZOOM = False
|
||||||
GALLERY_COLS = 3
|
GALLERY_COLS = 3
|
||||||
PREFERRED_WIDTH = 432 #px (1920 * 0.225)
|
PREFERRED_WIDTH = 432 #px (1920 * 0.225)
|
||||||
PREFERRED_HEIGHT = 243 #px (1080 * 0.225)
|
PREFERRED_HEIGHT = 243 #px (1080 * 0.225)
|
||||||
|
@ -249,12 +250,13 @@ screen view_image(item, _origin, zoom = zoom_arr.index(1.0), flag='a'):
|
||||||
key "game_menu" action _origin
|
key "game_menu" action _origin
|
||||||
|
|
||||||
# mousewheel & insert+delete
|
# mousewheel & insert+delete
|
||||||
if zoom < len(zoom_arr)-1: #zoom in
|
if (ALLOW_ZOOM):
|
||||||
key 'mousedown_4' action zoom_a_f
|
if zoom < len(zoom_arr)-1: #zoom in
|
||||||
key 'K_INSERT' action zoom_a_f
|
key 'mousedown_4' action zoom_a_f
|
||||||
if zoom > 0: #and (item['wh'][0] <= 1920 or item['wh'][1] <= 1080):
|
key 'K_INSERT' action zoom_a_f
|
||||||
key 'mousedown_5' action zoom_b_f
|
if zoom > 0: #and (item['wh'][0] <= 1920 or item['wh'][1] <= 1080):
|
||||||
key 'K_DELETE' action zoom_b_f
|
key 'mousedown_5' action zoom_b_f
|
||||||
|
key 'K_DELETE' action zoom_b_f
|
||||||
|
|
||||||
viewport id "vie":
|
viewport id "vie":
|
||||||
#Ren'Py isn't smart enough to not edgescroll while pressed,
|
#Ren'Py isn't smart enough to not edgescroll while pressed,
|
||||||
|
@ -271,7 +273,7 @@ screen view_image(item, _origin, zoom = zoom_arr.index(1.0), flag='a'):
|
||||||
#Reuse quick buttons, Ren'Py handles touch input lazy, it doesn't have
|
#Reuse quick buttons, Ren'Py handles touch input lazy, it doesn't have
|
||||||
#double finger pinch zoom, it translates taps as mouse events - have to use
|
#double finger pinch zoom, it translates taps as mouse events - have to use
|
||||||
#buttons
|
#buttons
|
||||||
if renpy.variant("small"):
|
if (ALLOW_ZOOM) and renpy.variant("small"):
|
||||||
hbox:
|
hbox:
|
||||||
style_prefix "quick"
|
style_prefix "quick"
|
||||||
xalign 0.5
|
xalign 0.5
|
||||||
|
|
Loading…
Reference in a new issue