aboutsummaryrefslogtreecommitdiff
path: root/client/menu/game.gd
diff options
context:
space:
mode:
Diffstat (limited to 'client/menu/game.gd')
-rw-r--r--client/menu/game.gd4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/menu/game.gd b/client/menu/game.gd
index bef4a5df..16e1dfa9 100644
--- a/client/menu/game.gd
+++ b/client/menu/game.gd
@@ -15,6 +15,7 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
extends Menu
+class_name GameMenu
@onready var game: Game = $Game
@onready var debug_label: RichTextLabel = $Debug
@@ -30,6 +31,9 @@ func _input(_event):
if Input.is_action_just_pressed("ui_menu"):
open_ingame_menu()
+func _menu_cover(state):
+ game.camera.disable_input = state
+
func _process(_delta):
if Global.get_setting("debug_info"):
debug_label.show()