preventing focus drops
This commit is contained in:
parent
111b39c5c3
commit
4bcc1b7da5
|
|
@ -33,7 +33,6 @@ class_name Collectable_Ui
|
|||
if has_stage == focused: return
|
||||
|
||||
if focused:
|
||||
owner.reveal()
|
||||
has_stage = true
|
||||
collapsed = false
|
||||
if not visible: show()
|
||||
|
|
@ -128,12 +127,13 @@ func _yoink_focus():
|
|||
func _on_pick_button_pressed():
|
||||
print("card collected!")
|
||||
if scene != null:
|
||||
State.leave_stage(self)
|
||||
get_tree().call_group("animation_player", "play_scene", scene, collected)
|
||||
if skipped: emit_signal("scene_skipped", -1)
|
||||
collected = true
|
||||
else:
|
||||
emit_signal("open_board")
|
||||
State.leave_stage(self)
|
||||
|
||||
|
||||
func _on_pick_button_released():
|
||||
hide()
|
||||
|
|
|
|||
Loading…
Reference in New Issue