forked from Cavemanon/IWaniHugThatGator-Demo-Public
Compare commits
2 Commits
83e5755b82
...
9184f42e73
Author | SHA1 | Date | |
---|---|---|---|
9184f42e73 | |||
e7fe2544b2 |
@ -504,8 +504,9 @@ init 150 python in draw_logic:
|
||||
del(_circle)
|
||||
|
||||
|
||||
transform tf_draw_moveindown(p=0.0):
|
||||
transform tf_draw_moveindown(p=0.0, scale=0.8):
|
||||
subpixel True alpha 0.0
|
||||
zoom scale
|
||||
pause p
|
||||
ypos -50
|
||||
parallel:
|
||||
@ -513,8 +514,9 @@ transform tf_draw_moveindown(p=0.0):
|
||||
parallel:
|
||||
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
|
||||
zoom scale
|
||||
pause p
|
||||
ypos 0
|
||||
parallel:
|
||||
@ -522,8 +524,9 @@ transform tf_draw_moveoutup(p=0.0):
|
||||
parallel:
|
||||
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
|
||||
zoom scale
|
||||
pause p
|
||||
xpos -50
|
||||
parallel:
|
||||
@ -531,8 +534,9 @@ transform tf_draw_moveinright(p=0.0):
|
||||
parallel:
|
||||
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
|
||||
zoom scale
|
||||
pause p
|
||||
xpos 0
|
||||
parallel:
|
||||
@ -540,11 +544,11 @@ transform tf_draw_moveoutleft(p=0.0):
|
||||
parallel:
|
||||
linear 0.5 alpha 0
|
||||
|
||||
transform tf_draw_fadetext:
|
||||
transform tf_draw_fadetext(p=0):
|
||||
xalign 0.5 yalign 0.1
|
||||
alpha 0.0
|
||||
|
||||
pause 0.5
|
||||
pause 0.5+p
|
||||
linear 0.5 alpha 1.0
|
||||
pause 3
|
||||
linear 0.5 alpha 0.0
|
||||
@ -587,6 +591,9 @@ screen _draw_screen(draw_object):
|
||||
[ _("Done"), Function(draw_object.save, False), 0.3, True]
|
||||
] )
|
||||
|
||||
if renpy.android:
|
||||
use draw_menu_button("gui/button/menubuttons/menu_button.png",_("Toggle UI"), SetVariable("draw_logic.SHOWING_UI", not draw_logic.SHOWING_UI), 0.4, True)
|
||||
|
||||
|
||||
#if draw_object.reference:
|
||||
# textbutton (_("Hide reference") if draw_object.reference_switcher else _("Show reference")):
|
||||
@ -598,14 +605,23 @@ screen _draw_screen(draw_object):
|
||||
else:
|
||||
text _("Use left click to draw.") at tf_draw_fadetext:
|
||||
color "#000000"
|
||||
text _("Press the letter 'H' to hide the drawing UI.") at tf_draw_fadetext(4):
|
||||
color "#000000"
|
||||
|
||||
|
||||
# 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):
|
||||
if showing:
|
||||
$ animation = tf_draw_moveindown(delay)
|
||||
else:
|
||||
$ animation = tf_draw_moveoutup(delay)
|
||||
|
||||
if renpy.android:
|
||||
$ scale = 1.0
|
||||
else:
|
||||
$ scale = 0.8
|
||||
|
||||
if showing:
|
||||
$ animation = tf_draw_moveindown(delay,scale)
|
||||
else:
|
||||
$ animation = tf_draw_moveoutup(delay,scale)
|
||||
|
||||
# I can't believe there's not a less hacky way to stack images in renpy
|
||||
vbox:
|
||||
spacing -1000
|
||||
imagebutton at animation:
|
||||
@ -622,15 +638,20 @@ screen draw_tool_button(icon,is_eraser,showing, delay):
|
||||
screen draw_menu_buttons(filename, showing, label_functions):
|
||||
for l_f in label_functions:
|
||||
if l_f[3]:
|
||||
use draw_menu_button(filename, l_f[0], l_f[1], showing, l_f[2])
|
||||
use draw_menu_button(filename, l_f[0], l_f[1], l_f[2], showing)
|
||||
|
||||
|
||||
screen draw_menu_button(filename, label, function, showing, delay):
|
||||
screen draw_menu_button(filename, label, function, delay, showing):
|
||||
|
||||
if renpy.android:
|
||||
$ scale = 1.0
|
||||
else:
|
||||
$ scale = 0.8
|
||||
|
||||
if showing:
|
||||
$ animation = tf_draw_moveinright(delay)
|
||||
$ animation = tf_draw_moveinright(delay,scale)
|
||||
else:
|
||||
$ animation = tf_draw_moveoutleft(delay)
|
||||
$ animation = tf_draw_moveoutleft(delay,scale)
|
||||
|
||||
button at animation:
|
||||
sensitive showing
|
||||
|
Reference in New Issue
Block a user