Hide button in Android and H hint text
This commit is contained in:
@ -544,11 +544,11 @@ transform tf_draw_moveoutleft(p=0.0, scale=0.8):
|
|||||||
parallel:
|
parallel:
|
||||||
linear 0.5 alpha 0
|
linear 0.5 alpha 0
|
||||||
|
|
||||||
transform tf_draw_fadetext:
|
transform tf_draw_fadetext(p=0):
|
||||||
xalign 0.5 yalign 0.1
|
xalign 0.5 yalign 0.1
|
||||||
alpha 0.0
|
alpha 0.0
|
||||||
|
|
||||||
pause 0.5
|
pause 0.5+p
|
||||||
linear 0.5 alpha 1.0
|
linear 0.5 alpha 1.0
|
||||||
pause 3
|
pause 3
|
||||||
linear 0.5 alpha 0.0
|
linear 0.5 alpha 0.0
|
||||||
@ -591,6 +591,9 @@ screen _draw_screen(draw_object):
|
|||||||
[ _("Done"), Function(draw_object.save, False), 0.3, True]
|
[ _("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:
|
#if draw_object.reference:
|
||||||
# textbutton (_("Hide reference") if draw_object.reference_switcher else _("Show reference")):
|
# textbutton (_("Hide reference") if draw_object.reference_switcher else _("Show reference")):
|
||||||
@ -602,8 +605,10 @@ screen _draw_screen(draw_object):
|
|||||||
else:
|
else:
|
||||||
text _("Use left click to draw.") at tf_draw_fadetext:
|
text _("Use left click to draw.") at tf_draw_fadetext:
|
||||||
color "#000000"
|
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):
|
screen draw_tool_button(icon,is_eraser,showing, delay):
|
||||||
|
|
||||||
if renpy.android:
|
if renpy.android:
|
||||||
@ -616,7 +621,7 @@ screen draw_tool_button(icon,is_eraser,showing, delay):
|
|||||||
else:
|
else:
|
||||||
$ animation = tf_draw_moveoutup(delay,scale)
|
$ animation = tf_draw_moveoutup(delay,scale)
|
||||||
|
|
||||||
|
# I can't believe there's not a less hacky way to stack images in renpy
|
||||||
vbox:
|
vbox:
|
||||||
spacing -1000
|
spacing -1000
|
||||||
imagebutton at animation:
|
imagebutton at animation:
|
||||||
@ -633,10 +638,10 @@ screen draw_tool_button(icon,is_eraser,showing, delay):
|
|||||||
screen draw_menu_buttons(filename, showing, label_functions):
|
screen draw_menu_buttons(filename, showing, label_functions):
|
||||||
for l_f in label_functions:
|
for l_f in label_functions:
|
||||||
if l_f[3]:
|
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:
|
if renpy.android:
|
||||||
$ scale = 1.0
|
$ scale = 1.0
|
||||||
|
Reference in New Issue
Block a user