From 52b95fe0dafe5f1769a37efe3574c917b388e2c6 Mon Sep 17 00:00:00 2001 From: SyntaX Date: Wed, 29 Jan 2020 15:06:19 +0100 Subject: [PATCH 1/2] esc - close game --- Characters/Player/Player.gd | 3 +++ 1 file changed, 3 insertions(+) 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"): From e96795f4fa9afc24607b9402d151f8f8973f8d3f Mon Sep 17 00:00:00 2001 From: karl Date: Wed, 29 Jan 2020 15:10:48 +0100 Subject: [PATCH 2/2] Disable credits "buttons" --- UI/MainMenu.tscn | 2 ++ 1 file changed, 2 insertions(+) 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 )