Makes buttons smaller in PC
This commit is contained in:
@ -504,8 +504,9 @@ init 150 python in draw_logic:
|
|||||||
del(_circle)
|
del(_circle)
|
||||||
|
|
||||||
|
|
||||||
transform tf_draw_moveindown(p=0.0):
|
transform tf_draw_moveindown(p=0.0, scale=0.8):
|
||||||
subpixel True alpha 0.0
|
subpixel True alpha 0.0
|
||||||
|
zoom scale
|
||||||
pause p
|
pause p
|
||||||
ypos -50
|
ypos -50
|
||||||
parallel:
|
parallel:
|
||||||
@ -513,8 +514,9 @@ transform tf_draw_moveindown(p=0.0):
|
|||||||
parallel:
|
parallel:
|
||||||
linear 0.25 alpha 1
|
linear 0.25 alpha 1
|
||||||
|
|
||||||
transform tf_draw_moveoutup(p=0.0):
|
transform tf_draw_moveoutup(p=0.0, scale=0.8):
|
||||||
subpixel True alpha 1
|
subpixel True alpha 1
|
||||||
|
zoom scale
|
||||||
pause p
|
pause p
|
||||||
ypos 0
|
ypos 0
|
||||||
parallel:
|
parallel:
|
||||||
@ -522,8 +524,9 @@ transform tf_draw_moveoutup(p=0.0):
|
|||||||
parallel:
|
parallel:
|
||||||
linear 0.5 alpha 0.0
|
linear 0.5 alpha 0.0
|
||||||
|
|
||||||
transform tf_draw_moveinright(p=0.0):
|
transform tf_draw_moveinright(p=0.0, scale=0.8):
|
||||||
subpixel True alpha 0.0
|
subpixel True alpha 0.0
|
||||||
|
zoom scale
|
||||||
pause p
|
pause p
|
||||||
xpos -50
|
xpos -50
|
||||||
parallel:
|
parallel:
|
||||||
@ -531,8 +534,9 @@ transform tf_draw_moveinright(p=0.0):
|
|||||||
parallel:
|
parallel:
|
||||||
linear 0.25 alpha 1
|
linear 0.25 alpha 1
|
||||||
|
|
||||||
transform tf_draw_moveoutleft(p=0.0):
|
transform tf_draw_moveoutleft(p=0.0, scale=0.8):
|
||||||
subpixel True alpha 1.0
|
subpixel True alpha 1.0
|
||||||
|
zoom scale
|
||||||
pause p
|
pause p
|
||||||
xpos 0
|
xpos 0
|
||||||
parallel:
|
parallel:
|
||||||
@ -601,10 +605,17 @@ screen _draw_screen(draw_object):
|
|||||||
|
|
||||||
# I can't believe there's not a less hacky way to stack images in renpy
|
# I can't believe there's not a less hacky way to stack images in renpy
|
||||||
screen draw_tool_button(icon,is_eraser,showing, delay):
|
screen draw_tool_button(icon,is_eraser,showing, delay):
|
||||||
if showing:
|
|
||||||
$ animation = tf_draw_moveindown(delay)
|
if renpy.android:
|
||||||
|
$ scale = 1.0
|
||||||
else:
|
else:
|
||||||
$ animation = tf_draw_moveoutup(delay)
|
$ scale = 0.8
|
||||||
|
|
||||||
|
if showing:
|
||||||
|
$ animation = tf_draw_moveindown(delay,scale)
|
||||||
|
else:
|
||||||
|
$ animation = tf_draw_moveoutup(delay,scale)
|
||||||
|
|
||||||
|
|
||||||
vbox:
|
vbox:
|
||||||
spacing -1000
|
spacing -1000
|
||||||
@ -627,10 +638,15 @@ screen draw_menu_buttons(filename, showing, label_functions):
|
|||||||
|
|
||||||
screen draw_menu_button(filename, label, function, showing, delay):
|
screen draw_menu_button(filename, label, function, showing, delay):
|
||||||
|
|
||||||
if showing:
|
if renpy.android:
|
||||||
$ animation = tf_draw_moveinright(delay)
|
$ scale = 1.0
|
||||||
else:
|
else:
|
||||||
$ animation = tf_draw_moveoutleft(delay)
|
$ scale = 0.8
|
||||||
|
|
||||||
|
if showing:
|
||||||
|
$ animation = tf_draw_moveinright(delay,scale)
|
||||||
|
else:
|
||||||
|
$ animation = tf_draw_moveoutleft(delay,scale)
|
||||||
|
|
||||||
button at animation:
|
button at animation:
|
||||||
sensitive showing
|
sensitive showing
|
||||||
|
Reference in New Issue
Block a user