forked from unfa/liblast
Fixed chat typing recieving trigger key
parent
627d865d26
commit
1bd5547df8
|
@ -49,10 +49,11 @@ func _input(event) -> void:
|
||||||
if Input.is_action_just_pressed("say_all"):
|
if Input.is_action_just_pressed("say_all"):
|
||||||
main.focus = 2 #main.GameFocus.CHAT
|
main.focus = 2 #main.GameFocus.CHAT
|
||||||
state = 1 #ChatState.TYPING_ALL
|
state = 1 #ChatState.TYPING_ALL
|
||||||
|
get_tree().get_root().set_input_as_handled()
|
||||||
if Input.is_action_just_pressed("say_team"):
|
if Input.is_action_just_pressed("say_team"):
|
||||||
main.focus = 2 #main.GameFocus.CHAT
|
main.focus = 2 #main.GameFocus.CHAT
|
||||||
state = 2 #ChatState.TYPING_TEAM
|
state = 2 #ChatState.TYPING_TEAM
|
||||||
|
get_tree().get_root().set_input_as_handled()
|
||||||
elif Input.is_action_just_pressed("say_cancel"):
|
elif Input.is_action_just_pressed("say_cancel"):
|
||||||
main.focus = 1 #main.GameFocus.GAME
|
main.focus = 1 #main.GameFocus.GAME
|
||||||
state = 0 #ChatState.INACTIVE
|
state = 0 #ChatState.INACTIVE
|
||||||
|
|
Loading…
Reference in New Issue