From 1bd5547df8b50a749899dd365c361df44bae9785 Mon Sep 17 00:00:00 2001 From: unfa Date: Mon, 7 Jun 2021 00:54:43 +0200 Subject: [PATCH] Fixed chat typing recieving trigger key --- Game/Assets/HUD/Chat.gd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Game/Assets/HUD/Chat.gd b/Game/Assets/HUD/Chat.gd index 89d1452..5284743 100644 --- a/Game/Assets/HUD/Chat.gd +++ b/Game/Assets/HUD/Chat.gd @@ -49,10 +49,11 @@ func _input(event) -> void: if Input.is_action_just_pressed("say_all"): main.focus = 2 #main.GameFocus.CHAT state = 1 #ChatState.TYPING_ALL - + get_tree().get_root().set_input_as_handled() if Input.is_action_just_pressed("say_team"): main.focus = 2 #main.GameFocus.CHAT state = 2 #ChatState.TYPING_TEAM + get_tree().get_root().set_input_as_handled() elif Input.is_action_just_pressed("say_cancel"): main.focus = 1 #main.GameFocus.GAME state = 0 #ChatState.INACTIVE