diff options
Diffstat (limited to 'client/menu/menu_manager.gd')
-rw-r--r-- | client/menu/menu_manager.gd | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/client/menu/menu_manager.gd b/client/menu/menu_manager.gd index e51e47f1..bba074f6 100644 --- a/client/menu/menu_manager.gd +++ b/client/menu/menu_manager.gd @@ -1,3 +1,19 @@ +# Undercooked - a game about cooking +# Copyright 2024 metamuffin +# Copyright 2024 tpart +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, version 3 of the License only. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/>. +# extends Control class_name MenuManager @@ -6,11 +22,12 @@ class_name MenuManager "credits": $CreditsMenu, "settings": $SettingsMenu } -@onready var transition = $SceneTransition +@onready var transition: SceneTransition = $SceneTransition var menu_stack = ["main"] func _ready(): + if not Global.settings["setup_complete"]["value"]: return transition.instant_to("res://menu/setup_menu.tscn") get_viewport().gui_focus_changed.connect(Sound.play_hover_maybe) Global.focus_first_button(menus[menu_stack.back()]) |