Fix {w} text tag affecting textbox animation.
This commit is contained in:
parent
2b40aeba9d
commit
53548aecdb
@ -35,7 +35,9 @@ screen say(who, what, side_image=None, icon=None):
|
|||||||
id "textbox"
|
id "textbox"
|
||||||
style "textbox"
|
style "textbox"
|
||||||
|
|
||||||
at gui_say_show_hide
|
# Ren'py will flicker the box on {w} tags,
|
||||||
|
# so we use a func.
|
||||||
|
at gui_say_show_hide(what)
|
||||||
|
|
||||||
# Ren'py hard crashes without textbox windows,
|
# Ren'py hard crashes without textbox windows,
|
||||||
# this is the workaround that just works.
|
# this is the workaround that just works.
|
||||||
@ -205,38 +207,35 @@ transform gui_perspective_hover:
|
|||||||
easein 0.1 matrixtransform ScaleMatrix(1.05, 1.05, 1.05)
|
easein 0.1 matrixtransform ScaleMatrix(1.05, 1.05, 1.05)
|
||||||
easeout 0.1 matrixtransform ScaleMatrix(1.0, 1.0, 1.0)
|
easeout 0.1 matrixtransform ScaleMatrix(1.0, 1.0, 1.0)
|
||||||
|
|
||||||
transform gui_say_show_hide:
|
transform gui_say_show_hide(what):
|
||||||
show_cancels_hide False
|
show_cancels_hide True
|
||||||
on start:
|
on show:
|
||||||
alpha 0
|
alpha 0
|
||||||
zoom 1.05
|
zoom 1.05
|
||||||
pause 0.1
|
pause 0.1
|
||||||
easein 0.1 zoom 1.00 alpha 1
|
easein 0.1 zoom 1.00 alpha 1
|
||||||
|
on replace:
|
||||||
|
alpha 1.0
|
||||||
|
zoom 1.0
|
||||||
on hide:
|
on hide:
|
||||||
easeout 0.1 zoom 0.95 alpha 0
|
# easeout 0.1 zoom 0.95 alpha 0
|
||||||
|
function renpy.partial(gui_say_hide, what)
|
||||||
|
|
||||||
# transform gui_say_show_hide:
|
init python:
|
||||||
# show_cancels_hide False
|
def gui_say_hide(what, trans, st, at):
|
||||||
# on show:
|
if st > 0.1:
|
||||||
# function gui_say_show
|
return None
|
||||||
# # on hide:
|
|
||||||
# # easeout 0.1 zoom 0.95 alpha 0
|
|
||||||
|
|
||||||
# init python:
|
if "{w}" in what:
|
||||||
# def gui_say_show(trans, st, at):
|
return None
|
||||||
# if at > 0.1:
|
|
||||||
# return None
|
|
||||||
|
|
||||||
# if _last_say_who == _next_say_who:
|
warper = _warper.easein(st / 0.1)
|
||||||
# return None
|
trans.alpha = renpy.atl.interpolate(warper, 1.0, 0.0, renpy.atl.PROPERTIES["alpha"])
|
||||||
|
trans.zoom = renpy.atl.interpolate(warper, 1.0, 0.95, renpy.atl.PROPERTIES["zoom"])
|
||||||
# warper = _warper.easein(at / 0.1)
|
return 0.01
|
||||||
# trans.alpha = renpy.atl.interpolate(warper, 0.0, 1.0, renpy.atl.PROPERTIES["alpha"])
|
|
||||||
# trans.zoom = renpy.atl.interpolate(warper, 1.05, 1.0, renpy.atl.PROPERTIES["zoom"])
|
|
||||||
# return 0.01
|
|
||||||
|
|
||||||
transform gui_choice_show_hide:
|
transform gui_choice_show_hide:
|
||||||
show_cancels_hide False
|
show_cancels_hide True
|
||||||
on start:
|
on start:
|
||||||
events False
|
events False
|
||||||
xoffset -100
|
xoffset -100
|
||||||
|
Loading…
Reference in New Issue
Block a user