diff --git a/Characters/Player/Player.gd b/Characters/Player/Player.gd index cc05f5e..ac8c1ac 100644 --- a/Characters/Player/Player.gd +++ b/Characters/Player/Player.gd @@ -143,6 +143,9 @@ func _process(_delta): process_animations() func process_input(): + if Input.is_action_just_pressed("ui_cancel"): + get_tree().quit() + # Walking var input_movement_vector = Vector2() if Input.is_action_pressed("move_fwrd"): diff --git a/UI/MainMenu.tscn b/UI/MainMenu.tscn index cb6984f..03083f8 100644 --- a/UI/MainMenu.tscn +++ b/UI/MainMenu.tscn @@ -182,6 +182,7 @@ size_flags_vertical = 0 margin_right = 634.0 margin_bottom = 100.0 rect_min_size = Vector2( 0, 100 ) +mouse_filter = 2 custom_fonts/font = SubResource( 2 ) custom_colors/font_color = Color( 1, 1, 1, 1 ) custom_colors/font_color_hover = Color( 0.980392, 0.839216, 0.619608, 1 ) @@ -193,6 +194,7 @@ margin_top = 104.0 margin_right = 634.0 margin_bottom = 204.0 rect_min_size = Vector2( 0, 100 ) +mouse_filter = 2 custom_fonts/font = SubResource( 2 ) custom_colors/font_color = Color( 1, 1, 1, 1 ) custom_colors/font_color_hover = Color( 0.980392, 0.839216, 0.619608, 1 )