fix: can now leave canvas (still bug needs double ESC)
This commit is contained in:
parent
c0f3bd40a9
commit
0de7f96064
|
|
@ -46,6 +46,7 @@ func _delayed_ready() ->void:
|
||||||
func play():
|
func play():
|
||||||
check_board_completion()
|
check_board_completion()
|
||||||
await closed
|
await closed
|
||||||
|
print("CardBoard.gd: closing")
|
||||||
_finalize_board_state()
|
_finalize_board_state()
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -392,7 +393,7 @@ func handle_drop(draggable: Draggable) -> int:
|
||||||
# Takes the inputs for control inputs
|
# Takes the inputs for control inputs
|
||||||
func _input(event : InputEvent) -> void:
|
func _input(event : InputEvent) -> void:
|
||||||
if event.is_action_pressed("ui_cancel"):
|
if event.is_action_pressed("ui_cancel"):
|
||||||
print("ui_cancel")
|
print("CardBoard.gd: ui_cancel")
|
||||||
closed.emit()
|
closed.emit()
|
||||||
get_viewport().set_input_as_handled()
|
get_viewport().set_input_as_handled()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ unique_name_in_owner = true
|
||||||
self_modulate = Color(1, 1, 1, 0)
|
self_modulate = Color(1, 1, 1, 0)
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
size_flags_horizontal = 3
|
size_flags_horizontal = 3
|
||||||
mouse_filter = 1
|
mouse_filter = 2
|
||||||
|
|
||||||
[node name="NoteZone" type="Control" parent="HBoxContainer"]
|
[node name="NoteZone" type="Control" parent="HBoxContainer"]
|
||||||
unique_name_in_owner = true
|
unique_name_in_owner = true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue