aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GameSession/GameSessionMenu.tscn
blob: af81f09c8d09a3c9096c9a2c8385c78642c41573 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[gd_scene load_steps=4 format=3 uid="uid://dvdynl6eir40o"]

[ext_resource type="Theme" uid="uid://cqrfmjt5yeti7" path="res://assets/graphics/theme/game_session_menu.tres" id="1_2onog"]
[ext_resource type="Script" path="res://src/Game/GameSession/GameSessionMenu.gd" id="1_usq6o"]
[ext_resource type="PackedScene" uid="uid://o4u142w4qkln" path="res://src/Game/GameMenu.tscn" id="2_xi6a4"]

[node name="GameSessionMenu" type="PanelContainer" node_paths=PackedStringArray("_main_menu_dialog", "_quit_dialog")]
process_mode = 3
editor_description = "UI-68"
theme = ExtResource("1_2onog")
theme_type_variation = &"SessionPanel"
script = ExtResource("1_usq6o")
_main_menu_scene = ExtResource("2_xi6a4")
_main_menu_dialog = NodePath("MainMenuDialog")
_quit_dialog = NodePath("QuitDialog")

[node name="ButtonListMargin" type="MarginContainer" parent="."]
layout_mode = 2
theme_override_constants/margin_left = 10
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_bottom = 10

[node name="ButtonList" type="VBoxContainer" parent="ButtonListMargin"]
layout_mode = 2

[node name="SaveButton" type="Button" parent="ButtonListMargin/ButtonList"]
editor_description = "UI-69"
layout_mode = 2
theme_type_variation = &"SessionButton"
text = "GAMESESSIONMENU_SAVE"

[node name="LoadButton" type="Button" parent="ButtonListMargin/ButtonList"]
editor_description = "UI-70"
layout_mode = 2
theme_type_variation = &"SessionButton"
text = "GAMESESSIONMENU_LOAD"

[node name="OptionsButton" type="Button" parent="ButtonListMargin/ButtonList"]
editor_description = "UI-10"
layout_mode = 2
theme_type_variation = &"SessionButton"
text = "GAMESESSIONMENU_OPTIONS"

[node name="MainMenuButton" type="Button" parent="ButtonListMargin/ButtonList"]
editor_description = "UI-71"
layout_mode = 2
theme_type_variation = &"SessionButton"
text = "GAMESESSIONMENU_MAINMENU"

[node name="QuitButton" type="Button" parent="ButtonListMargin/ButtonList"]
editor_description = "UI-72"
layout_mode = 2
theme_type_variation = &"SessionButton"
text = "GAMESESSIONMENU_QUIT"

[node name="CloseSeparator" type="HSeparator" parent="ButtonListMargin/ButtonList"]
layout_mode = 2
theme_type_variation = &"SessionSeparator"

[node name="CloseButton" type="Button" parent="ButtonListMargin/ButtonList"]
editor_description = "SS-64, UI-80, UIFUN-79"
layout_mode = 2
theme_type_variation = &"SessionButton"
text = "GAMESESSIONMENU_CLOSE"

[node name="MainMenuDialog" type="ConfirmationDialog" parent="."]
disable_3d = true
title = "GAMESESSIONMENU_MAINMENU_DIALOG_TITLE"
size = Vector2i(384, 100)
ok_button_text = "DIALOG_OK"
dialog_text = "GAMESESSIONMENU_MAINMENU_DIALOG_TEXT"
cancel_button_text = "DIALOG_CANCEL"

[node name="QuitDialog" type="ConfirmationDialog" parent="."]
disable_3d = true
title = "GAMESESSIONMENU_QUIT_DIALOG_TITLE"
ok_button_text = "DIALOG_OK"
dialog_text = "GAMESESSIONMENU_QUIT_DIALOG_TEXT"
cancel_button_text = "DIALOG_CANCEL"

[connection signal="pressed" from="ButtonListMargin/ButtonList/SaveButton" to="." method="_on_save_button_pressed"]
[connection signal="pressed" from="ButtonListMargin/ButtonList/LoadButton" to="." method="_on_load_button_pressed"]
[connection signal="pressed" from="ButtonListMargin/ButtonList/OptionsButton" to="." method="_on_options_button_pressed"]
[connection signal="pressed" from="ButtonListMargin/ButtonList/MainMenuButton" to="MainMenuDialog" method="popup_centered"]
[connection signal="pressed" from="ButtonListMargin/ButtonList/QuitButton" to="QuitDialog" method="popup_centered"]
[connection signal="pressed" from="ButtonListMargin/ButtonList/CloseButton" to="." method="hide"]
[connection signal="confirmed" from="MainMenuDialog" to="." method="_on_main_menu_confirmed"]
[connection signal="custom_action" from="MainMenuDialog" to="." method="_on_main_menu_dialog_custom_action"]
[connection signal="confirmed" from="QuitDialog" to="." method="_on_quit_confirmed"]
[connection signal="custom_action" from="QuitDialog" to="." method="_on_quit_dialog_custom_action"]