diff options
Diffstat (limited to 'client/player/controllable_player.gd')
-rw-r--r-- | client/player/controllable_player.gd | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/client/player/controllable_player.gd b/client/player/controllable_player.gd index b05b2103..e0e8909b 100644 --- a/client/player/controllable_player.gd +++ b/client/player/controllable_player.gd @@ -51,12 +51,14 @@ func _ready(): func _input(_event): if Input.is_action_just_pressed("chat"): - if chat_open: + if chat_open and not game.menu.covered: chat_bubble.stop_edit() - else: + chat_open = false + enable_input = true + elif is_input_enabled(): chat_bubble.edit() - chat_open = !chat_open - enable_input = !enable_input + chat_open = true + enable_input = false const MAX_DT = 1. / 50. func _process(delta): |