Tales-of-PKMN/scenes/main_menu.tscn
2026-09-27 11:55:02 +02:00

183 lines
5.7 KiB
Plaintext

[gd_scene format=3 uid="uid://bluq6da7tku3d"]
[ext_resource type="Script" uid="uid://cj37ns1ahfvhr" path="res://scripts/main_menu.gd" id="1_ekxnf"]
[ext_resource type="Script" uid="uid://7hglx6nfu063" path="res://addons/controller_icons/objects/ControllerIconTexture.gd" id="2_bqqt6"]
[ext_resource type="Texture2D" uid="uid://d23fefvrd41re" path="res://assets/textures/background/0.png" id="2_wu84c"]
[sub_resource type="LabelSettings" id="LabelSettings_3agn1"]
font_size = 64
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_bqqt6"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ekxnf"]
[sub_resource type="Texture2D" id="Texture2D_wu84c"]
resource_local_to_scene = false
resource_name = ""
script = ExtResource("2_bqqt6")
path = "ui_accept"
metadata/_custom_type_script = "uid://7hglx6nfu063"
[sub_resource type="Texture2D" id="Texture2D_bqqt6"]
resource_local_to_scene = false
resource_name = ""
script = ExtResource("2_bqqt6")
path = "ui_cancel"
metadata/_custom_type_script = "uid://7hglx6nfu063"
[node name="MainMenu" type="Control" unique_id=1471802333]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_ekxnf")
progression_backgrounds = Array[Texture2D]([ExtResource("2_wu84c")])
[node name="Background" type="TextureRect" parent="." unique_id=545049912]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
expand_mode = 1
stretch_mode = 6
[node name="GameInfos" type="Control" parent="." unique_id=2060446590]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -40.0
offset_top = -20.0
offset_bottom = 20.0
grow_horizontal = 0
grow_vertical = 2
[node name="GreyedBackground" type="PanelContainer" parent="GameInfos" unique_id=1404024715]
layout_mode = 0
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -571.0
offset_top = -323.5
offset_bottom = 323.5
grow_horizontal = 0
grow_vertical = 2
[node name="GameTitle" type="Label" parent="GameInfos" unique_id=745232782]
layout_mode = 1
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -489.0
offset_top = -185.0
offset_right = -45.0
offset_bottom = -97.0
grow_horizontal = 0
grow_vertical = 2
text = "Tales of PKMN"
label_settings = SubResource("LabelSettings_3agn1")
[node name="Buttons" type="MarginContainer" parent="GameInfos" unique_id=1437260283]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -347.0
offset_top = 79.0
offset_bottom = 304.0
grow_horizontal = 0
grow_vertical = 0
theme_override_constants/margin_right = 200
theme_override_constants/margin_bottom = 150
[node name="VBoxContainer" type="VBoxContainer" parent="GameInfos/Buttons" unique_id=212717997]
layout_mode = 2
[node name="StartContainer" type="PanelContainer" parent="GameInfos/Buttons/VBoxContainer" unique_id=455366583]
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxEmpty_bqqt6")
[node name="HBoxContainer" type="HBoxContainer" parent="GameInfos/Buttons/VBoxContainer/StartContainer" unique_id=980574030]
layout_mode = 2
[node name="Start" type="Button" parent="GameInfos/Buttons/VBoxContainer/StartContainer/HBoxContainer" unique_id=1823965781]
unique_name_in_owner = true
layout_mode = 2
focus_neighbor_bottom = NodePath("../../../QuitContainer/HBoxContainer/Quit")
theme_override_styles/focus = SubResource("StyleBoxEmpty_ekxnf")
text = "Appuyer sur"
flat = true
icon_alignment = 2
[node name="TextureRect" type="TextureRect" parent="GameInfos/Buttons/VBoxContainer/StartContainer/HBoxContainer" unique_id=544893863]
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
size_flags_vertical = 3
texture = SubResource("Texture2D_wu84c")
expand_mode = 1
[node name="QuitContainer" type="PanelContainer" parent="GameInfos/Buttons/VBoxContainer" unique_id=24421836]
layout_mode = 2
theme_override_styles/panel = SubResource("StyleBoxEmpty_bqqt6")
[node name="HBoxContainer" type="HBoxContainer" parent="GameInfos/Buttons/VBoxContainer/QuitContainer" unique_id=174332387]
layout_mode = 2
size_flags_horizontal = 4
[node name="Quit" type="Button" parent="GameInfos/Buttons/VBoxContainer/QuitContainer/HBoxContainer" unique_id=247251645]
unique_name_in_owner = true
layout_mode = 2
focus_neighbor_top = NodePath("../../../StartContainer/HBoxContainer/Start")
theme_override_styles/focus = SubResource("StyleBoxEmpty_ekxnf")
text = "Quitter le jeu"
flat = true
icon_alignment = 2
[node name="TextureRect" type="TextureRect" parent="GameInfos/Buttons/VBoxContainer/QuitContainer/HBoxContainer" unique_id=1821014740]
visible = false
custom_minimum_size = Vector2(40, 40)
layout_mode = 2
size_flags_vertical = 3
texture = SubResource("Texture2D_bqqt6")
expand_mode = 1
[node name="VersionLabel" type="Label" parent="." unique_id=673582892]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -23.0
offset_right = 40.0
grow_vertical = 0
[node name="MusicPlayer" type="AudioStreamPlayer" parent="." unique_id=1279071971]
unique_name_in_owner = true
[node name="TransitionRect" type="ColorRect" parent="." unique_id=389028330]
unique_name_in_owner = true
modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)
[connection signal="pressed" from="GameInfos/Buttons/VBoxContainer/StartContainer/HBoxContainer/Start" to="." method="_on_start_pressed"]
[connection signal="pressed" from="GameInfos/Buttons/VBoxContainer/QuitContainer/HBoxContainer/Quit" to="." method="_on_quit_pressed"]