[gd_scene format=3 uid="uid://b26lewmnsfj8a"]

[ext_resource type="Script" uid="uid://de33ywim0v35a" path="res://scripts/menu.gd" id="1_ufwb2"]
[ext_resource type="Texture2D" uid="uid://dt6ya80yl0g46" path="res://assets/img/textures/cin60137.jpg" id="3_v86rl"]
[ext_resource type="Texture2D" uid="uid://cdnkgbmh886ry" path="res://assets/img/ui/fr_b.png" id="5_v86rl"]
[ext_resource type="Shader" uid="uid://1we0jycvvn8u" path="res://assets/shader/pause.gdshader" id="13_6cdou"]
[ext_resource type="Texture2D" uid="uid://6pnnmpe5kfob" path="res://assets/img/textures/GRYDIRT2.JPG" id="14_7jp70"]
[ext_resource type="Texture2D" uid="uid://djdak04s0psnx" path="res://assets/img/sky/rogland_clear_night.jpg" id="14_i42df"]
[ext_resource type="Texture2D" uid="uid://mpo1px8jnlyq" path="res://assets/img/ui/en.png" id="17_3dmrc"]

[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_7jp70"]
panorama = ExtResource("14_i42df")

[sub_resource type="Sky" id="Sky_ilty0"]
sky_material = SubResource("PanoramaSkyMaterial_7jp70")

[sub_resource type="Environment" id="Environment_mxgkd"]
background_mode = 2
sky = SubResource("Sky_ilty0")
tonemap_mode = 2

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_13sgg"]
albedo_texture = ExtResource("3_v86rl")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_6cdou"]
shader = ExtResource("13_6cdou")
shader_parameter/lod = 0.0

[sub_resource type="ViewportTexture" id="ViewportTexture_6cdou"]
viewport_path = NodePath("Sprite3D/SubViewport")

[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_mxgkd"]
texture = ExtResource("14_7jp70")
texture_margin_left = 117.0
modulate_color = Color(0.21768793, 0.19432282, 0.106170125, 1)

[node name="Menu" type="Node3D" unique_id=1064277368]
script = ExtResource("1_ufwb2")

[node name="WorldEnvironment" type="WorldEnvironment" parent="." unique_id=1329831783]
environment = SubResource("Environment_mxgkd")

[node name="floor" type="CSGBox3D" parent="." unique_id=1868334949]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -24.59195, 0.11557007, 0)
material_override = SubResource("StandardMaterial3D_13sgg")
use_collision = true
size = Vector3(106.67551, 1, 54.07837)

[node name="Camera3D" type="Camera3D" parent="." unique_id=1267348627]
transform = Transform3D(-0.8448849, -0.06828018, 0.5305728, -0.013883759, 0.9942856, 0.10584749, -0.5347682, 0.0820626, -0.84100455, 12.470481, 2.312337, 0.3884548)

[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=1178058258]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -455.0
offset_top = -159.0
offset_right = 399.0
offset_bottom = -96.0
grow_horizontal = 2
grow_vertical = 0
size_flags_horizontal = 4

[node name="Start" type="Button" parent="HBoxContainer" unique_id=1727461751]
layout_mode = 2
theme_override_font_sizes/font_size = 40
text = "Commencer"

[node name="i" type="Button" parent="HBoxContainer" unique_id=944988885]
material = SubResource("ShaderMaterial_6cdou")
layout_mode = 2
theme_override_font_sizes/font_size = 40
text = "        "

[node name="Quit" type="Button" parent="HBoxContainer" unique_id=2068217536]
layout_mode = 2
theme_override_font_sizes/font_size = 40
text = "Quitter"

[node name="i2" type="Button" parent="HBoxContainer" unique_id=1363635639]
material = SubResource("ShaderMaterial_6cdou")
layout_mode = 2
theme_override_font_sizes/font_size = 40
text = "        "

[node name="Credit" type="Button" parent="HBoxContainer" unique_id=1678492232]
layout_mode = 2
theme_override_font_sizes/font_size = 40
text = "Credits"

[node name="i3" type="Button" parent="HBoxContainer" unique_id=1912463808]
material = SubResource("ShaderMaterial_6cdou")
layout_mode = 2
theme_override_font_sizes/font_size = 40
text = "       "

[node name="fr" type="TextureButton" parent="HBoxContainer" unique_id=151038084]
z_index = 1
layout_mode = 2
size_flags_vertical = 4
texture_normal = ExtResource("5_v86rl")

[node name="i4" type="Button" parent="HBoxContainer" unique_id=448501036]
material = SubResource("ShaderMaterial_6cdou")
layout_mode = 2
theme_override_font_sizes/font_size = 40
text = "  "

[node name="en" type="TextureButton" parent="HBoxContainer" unique_id=733177303]
layout_mode = 2
size_flags_vertical = 4
texture_normal = ExtResource("17_3dmrc")

[node name="HBoxContainer2" type="HBoxContainer" parent="." unique_id=1520013053]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -84.5
offset_top = -63.0
offset_right = 84.5
grow_horizontal = 2
grow_vertical = 0

[node name="Screen" type="Button" parent="HBoxContainer2" unique_id=1175982664]
layout_mode = 2
theme_override_font_sizes/font_size = 30
text = "Plein ecran"

[node name="Sprite3D" type="Sprite3D" parent="." unique_id=340944975]
transform = Transform3D(0.082015246, 0.02591525, 0.99629414, -0.00212616, 0.99966425, -0.025827877, -0.9966288, -1.0481225e-09, 0.08204281, 1.1284189, 7.4036493, -3.3047075)
texture = SubResource("ViewportTexture_6cdou")

[node name="SubViewport" type="SubViewport" parent="Sprite3D" unique_id=732684053]
size = Vector2i(1110, 1240)

[node name="credit_label" type="Label" parent="Sprite3D/SubViewport" unique_id=924928650]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -251.5
offset_top = -317.5
offset_right = 251.5
offset_bottom = 317.5
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 80
theme_override_styles/normal = SubResource("StyleBoxTexture_mxgkd")
text = "Credits

Jeu : Pouet

Sons : Playable Workshop,
Pixabay

Musique : Pouet 

Textures : TextureTown
Ciel : Poly Haven"
horizontal_alignment = 1

[connection signal="pressed" from="HBoxContainer/Start" to="." method="_on_start_pressed"]
[connection signal="pressed" from="HBoxContainer/Quit" to="." method="_on_quit_pressed"]
[connection signal="pressed" from="HBoxContainer/Credit" to="." method="_on_credit_pressed"]
[connection signal="pressed" from="HBoxContainer/fr" to="." method="_on_fr_pressed"]
[connection signal="pressed" from="HBoxContainer/en" to="." method="_on_en_pressed"]
[connection signal="pressed" from="HBoxContainer2/Screen" to="." method="_on_screen_pressed"]
