cancel ui collapse animation when mouse enters again
This commit is contained in:
parent
9ffd6eca97
commit
eeed4f68dd
|
|
@ -13,7 +13,8 @@ var revealed: bool = false:
|
||||||
else:
|
else:
|
||||||
ui.vanish()
|
ui.vanish()
|
||||||
await get_tree().create_timer(1).timeout
|
await get_tree().create_timer(1).timeout
|
||||||
wrapper.hide()
|
if not ui.visible:
|
||||||
|
wrapper.hide()
|
||||||
|
|
||||||
var has_mouse: bool = false
|
var has_mouse: bool = false
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ func update_state():
|
||||||
|
|
||||||
func try_reveal() -> bool:
|
func try_reveal() -> bool:
|
||||||
if is_exit and not State.active_save_game.is_childhood_board_complete: return false
|
if is_exit and not State.active_save_game.is_childhood_board_complete: return false
|
||||||
if not visible:
|
if not visible or animation_player.get_animation("vanish") or animation_player.get_animation("vanish_all"):
|
||||||
update_state()
|
update_state()
|
||||||
visible = true
|
visible = true
|
||||||
animation_player.play("reveal")
|
animation_player.play("reveal")
|
||||||
|
|
|
||||||
|
|
@ -538,10 +538,10 @@ tracks/6/path = NodePath(".:visible")
|
||||||
tracks/6/interp = 1
|
tracks/6/interp = 1
|
||||||
tracks/6/loop_wrap = true
|
tracks/6/loop_wrap = true
|
||||||
tracks/6/keys = {
|
tracks/6/keys = {
|
||||||
"times": PackedFloat32Array(0),
|
"times": PackedFloat32Array(0, 0.6),
|
||||||
"transitions": PackedFloat32Array(1),
|
"transitions": PackedFloat32Array(1, 1),
|
||||||
"update": 1,
|
"update": 1,
|
||||||
"values": [true]
|
"values": [true, true]
|
||||||
}
|
}
|
||||||
tracks/7/type = "value"
|
tracks/7/type = "value"
|
||||||
tracks/7/imported = false
|
tracks/7/imported = false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue