aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/GameSessionMenu.gd
blob: 7d785ca8e31f8567a44b3ae6c89d17412b63bce7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
extends PanelContainer

@export var _main_menu_scene : PackedScene

signal options_button_pressed

# REQUIREMENTS:
# * SS-47
# * UIFUN-69
func _on_main_menu_confirmed() -> void:
   # TODO - reset map when going back to main menu
   get_tree().change_scene_to_packed(_main_menu_scene)

# REQUIREMENTS:
# * SS-48
# * UIFUN-70
func _on_quit_confirmed() -> void:
   get_tree().quit()

# REQUIREMENTS:
# * SS-7, SS-46
# * UIFUN-11
func _on_options_button_pressed() -> void:
   hide()
   options_button_pressed.emit()