Fixed chat typing recieving trigger key

pull/50/head
unfa 2021-06-07 00:54:43 +02:00
parent 627d865d26
commit 1bd5547df8
1 changed files with 2 additions and 1 deletions

View File

@ -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