fix: removed a super annoying half second wait.
This commit is contained in:
parent
a5d1e46466
commit
a0272ec3f2
|
|
@ -208,12 +208,16 @@ func transition():
|
||||||
fill_post_slots()
|
fill_post_slots()
|
||||||
|
|
||||||
await anim_players[0].animation_finished
|
await anim_players[0].animation_finished
|
||||||
|
|
||||||
if selection_state != POSTS:
|
if selection_state != POSTS:
|
||||||
show_posts()
|
show_posts()
|
||||||
|
|
||||||
elif selection_state == POSTS_SELECTED:
|
elif selection_state == POSTS_SELECTED:
|
||||||
var out_str:Array[StringName] = []
|
var out_str:Array[StringName] = []
|
||||||
|
|
||||||
for card in output:
|
for card in output:
|
||||||
out_str.append(card.text if card.text != "" else "c_void")
|
out_str.append(card.text if card.text != "" else "c_void")
|
||||||
|
|
||||||
cards_picked.emit(out_str)
|
cards_picked.emit(out_str)
|
||||||
selection_state = DONE
|
selection_state = DONE
|
||||||
Scenes.finish_sequence(self)
|
Scenes.finish_sequence(self)
|
||||||
|
|
@ -221,7 +225,6 @@ func transition():
|
||||||
func show_posts():
|
func show_posts():
|
||||||
for player:AnimationPlayer in anim_players:
|
for player:AnimationPlayer in anim_players:
|
||||||
player.play("RESET")
|
player.play("RESET")
|
||||||
await get_tree().create_timer(.5).timeout
|
|
||||||
selection_state = POSTS
|
selection_state = POSTS
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue