diff options
Diffstat (limited to 'client/menu/menu_manager.gd')
| -rw-r--r-- | client/menu/menu_manager.gd | 20 | 
1 files changed, 18 insertions, 2 deletions
| diff --git a/client/menu/menu_manager.gd b/client/menu/menu_manager.gd index c15f181f..a695cbdc 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,15 +22,15 @@ class_name MenuManager  	"credits": $CreditsMenu,  	"settings": $SettingsMenu  } -@onready var transition = $SceneTransition +@onready var transition: SceneTransition = $SceneTransition  @onready var hover_sound = $Hover  @onready var click_sound = $Click  var menu_stack = ["main"] -  func _ready(): +	if not Global.settings["setup_complete"]["value"]: return transition.instant_to("res://menu/setup_menu.tscn")  	Global.focus_first_button(menus[menu_stack.back()])  	for m in menus.values(): | 
