forked from unfa/liblast
Fixed the chat eating T and Y key presses while in the menu
parent
cca26a5e05
commit
0cef5fb5c0
|
@ -31,7 +31,7 @@ func _ready():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
func _input(_event) -> void:
|
func _input(_event) -> void:
|
||||||
if state == ChatState.INACTIVE:
|
if state == ChatState.INACTIVE and main.focus == main.GameFocus.GAME:
|
||||||
if Input.is_action_just_pressed("say_all"):
|
if Input.is_action_just_pressed("say_all"):
|
||||||
main.focus = main.GameFocus.CHAT
|
main.focus = main.GameFocus.CHAT
|
||||||
state = ChatState.TYPING_ALL
|
state = ChatState.TYPING_ALL
|
||||||
|
|
Loading…
Reference in New Issue