diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/menu/controller_buttons/controller_button.gd | 2 | ||||
-rw-r--r-- | client/menu/lobby.gd | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/client/menu/controller_buttons/controller_button.gd b/client/menu/controller_buttons/controller_button.gd index 4fa70b5a..83cfc180 100644 --- a/client/menu/controller_buttons/controller_button.gd +++ b/client/menu/controller_buttons/controller_button.gd @@ -29,6 +29,8 @@ func _input(event): return if not is_visible_in_tree(): return + if disabled: + return if Input.is_action_just_pressed(press_action): pressed.emit() diff --git a/client/menu/lobby.gd b/client/menu/lobby.gd index e96e11c4..a06b244a 100644 --- a/client/menu/lobby.gd +++ b/client/menu/lobby.gd @@ -58,9 +58,9 @@ func _input(event): if not visible: return - if Input.is_action_just_pressed("previous"): + if Input.is_action_just_pressed("previous") and not prev_map.disabled: prev_map.emit_signal("pressed") - elif Input.is_action_just_pressed("next"): + elif Input.is_action_just_pressed("next") and not next_map.disabled: next_map.emit_signal("pressed") func _on_left_pressed(): |