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():
|
||||
check_board_completion()
|
||||
await closed
|
||||
print("CardBoard.gd: closing")
|
||||
_finalize_board_state()
|
||||
|
||||
|
||||
|
|
@ -392,7 +393,7 @@ func handle_drop(draggable: Draggable) -> int:
|
|||
# Takes the inputs for control inputs
|
||||
func _input(event : InputEvent) -> void:
|
||||
if event.is_action_pressed("ui_cancel"):
|
||||
print("ui_cancel")
|
||||
print("CardBoard.gd: ui_cancel")
|
||||
closed.emit()
|
||||
get_viewport().set_input_as_handled()
|
||||
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ unique_name_in_owner = true
|
|||
self_modulate = Color(1, 1, 1, 0)
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
mouse_filter = 1
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="NoteZone" type="Control" parent="HBoxContainer"]
|
||||
unique_name_in_owner = true
|
||||
|
|
|
|||
Loading…
Reference in New Issue