fix: input propagation of card picker was bugged
This commit is contained in:
parent
6c216bb4b1
commit
fea0d24dc3
|
|
@ -1741,15 +1741,14 @@ anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
mouse_filter = 0
|
mouse_filter = 2
|
||||||
script = ExtResource("1_pjntm")
|
script = ExtResource("1_pjntm")
|
||||||
current_scene_id = 0
|
|
||||||
|
|
||||||
[node name="Control" type="Control" parent="."]
|
[node name="Control" type="Control" parent="."]
|
||||||
|
visible = false
|
||||||
layout_mode = 2
|
layout_mode = 2
|
||||||
|
|
||||||
[node name="label" type="Label" parent="Control"]
|
[node name="label" type="Label" parent="Control"]
|
||||||
visible = false
|
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = -359.0
|
offset_left = -359.0
|
||||||
offset_top = -256.0
|
offset_top = -256.0
|
||||||
|
|
|
||||||
|
|
@ -101,18 +101,3 @@ func _load_room(next_path: String) -> bool:
|
||||||
push_error("Failed to load room.")
|
push_error("Failed to load room.")
|
||||||
break
|
break
|
||||||
return false
|
return false
|
||||||
|
|
||||||
|
|
||||||
func _unhandled_input(event: InputEvent) -> void:
|
|
||||||
if event is InputEvent:
|
|
||||||
match app_state:
|
|
||||||
AppState.BOOT:
|
|
||||||
pass
|
|
||||||
AppState.MENU:
|
|
||||||
pass
|
|
||||||
AppState.PLAY:
|
|
||||||
if event.is_action_pressed("ui_menu"):
|
|
||||||
app_state = AppState.PAUSE
|
|
||||||
AppState.PAUSE:
|
|
||||||
if event.is_action_pressed("ui_menu"):
|
|
||||||
app_state = AppState.PLAY
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue