[gd_scene load_steps=21 format=3 uid="uid://12nak7amd1uq"] [ext_resource type="Script" uid="uid://cqao7n800qy40" path="res://gui/game/scripts/game_gui.gd" id="1_udau0"] [ext_resource type="Theme" uid="uid://bgcmd213j6gk1" path="res://gui/ressources/default_theme.tres" id="2_nq5i2"] [ext_resource type="Texture2D" uid="uid://cm3ehinvvj52i" path="res://gui/game/assets/texture/Interface sans boutons.png" id="3_n4kem"] [ext_resource type="Texture2D" uid="uid://dcgnamu7sb3ov" path="res://gui/game/assets/icons/bolt.svg" id="4_k4juk"] [ext_resource type="LabelSettings" uid="uid://dqwayi8yjwau2" path="res://gui/ressources/title_label_settings.tres" id="4_ujg5r"] [ext_resource type="Texture2D" uid="uid://c2pgaklnj5w3d" path="res://gui/game/assets/texture/Tablette info.png" id="6_fovlv"] [ext_resource type="Texture2D" uid="uid://pltmnkqd5ut2" path="res://entities/plants/assets/sprites/seeds/grille_seeds.png" id="7_n4kem"] [ext_resource type="FontFile" uid="uid://cpnsnrqhfkj3k" path="res://gui/ressources/fonts/spincycle_ot.otf" id="8_n4kem"] [ext_resource type="Texture2D" uid="uid://b5cuxgisrsfgt" path="res://gui/game/pause/assets/icons/player-pause.svg" id="9_2wykm"] [sub_resource type="AtlasTexture" id="AtlasTexture_ek73b"] atlas = ExtResource("7_n4kem") region = Rect2(76, 75, 124, 135) [sub_resource type="LabelSettings" id="LabelSettings_ek73b"] font = ExtResource("8_n4kem") font_size = 20 [sub_resource type="LabelSettings" id="LabelSettings_n4kem"] font_size = 12 [sub_resource type="Animation" id="Animation_iyvkh"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("PassDayFade:color") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Color(0.0627451, 0.0588235, 0.168627, 0)] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("MarginContainer/PlayerInfo/EnergyInfo:offset_left") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [-44.0] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("Effect:modulate") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Color(1, 1, 1, 0)] } tracks/3/type = "value" tracks/3/imported = false tracks/3/enabled = true tracks/3/path = NodePath("MarginContainer/PlayerInfo/EnergyInfo:offset_bottom") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [12.5] } [sub_resource type="Animation" id="Animation_n4kem"] resource_name = "no_energy_left" length = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("MarginContainer/PlayerInfo/EnergyInfo:offset_left") tracks/0/interp = 2 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.0333333, 0.1, 0.166667, 0.233333, 0.3, 0.366667, 0.433333, 0.5), "transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1), "update": 0, "values": [-44.0, -40.0, -44.0, -48.0, -44.0, -40.0, -44.0, -40.0, -44.0] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Effect:modulate") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0, 0.1, 0.266667), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [Color(0.866667, 0.152941, 0.337255, 0), Color(0.866667, 0.152941, 0.337255, 0.392157), Color(0.866667, 0.152941, 0.337255, 0)] } [sub_resource type="Animation" id="Animation_id0t5"] resource_name = "not_permitted" length = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Effect:modulate") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.1, 0.266667), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [Color(0.866667, 0.152941, 0.337255, 0), Color(0.866667, 0.152941, 0.337255, 0.392157), Color(0.866667, 0.152941, 0.337255, 0)] } [sub_resource type="Animation" id="Animation_ykapk"] resource_name = "pass_day" tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("PassDayFade:color") tracks/0/interp = 2 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.4, 0.6, 1), "transitions": PackedFloat32Array(1, 1, 1, 1), "update": 0, "values": [Color(0.0627451, 0.0588235, 0.168627, 0), Color(0.0627451, 0.0588235, 0.168627, 1), Color(0.0627451, 0.0588235, 0.168627, 1), Color(0.0627451, 0.0588235, 0.168627, 0)] } [sub_resource type="Animation" id="Animation_2wykm"] resource_name = "upgrade" length = 0.5 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Effect:modulate") tracks/0/interp = 2 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.133333, 0.5), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [Color(0.67451, 0.52549, 0.203922, 0), Color(0.67451, 0.52549, 0.203922, 0.572549), Color(0.67451, 0.52549, 0.203922, 0)] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("MarginContainer/PlayerInfo/EnergyInfo:offset_bottom") tracks/1/interp = 2 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0, 0.233333, 0.5), "transitions": PackedFloat32Array(1, 1, 1), "update": 0, "values": [12.5, -32.0, 12.5] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_n4kem"] _data = { &"RESET": SubResource("Animation_iyvkh"), &"no_energy_left": SubResource("Animation_n4kem"), &"not_permitted": SubResource("Animation_id0t5"), &"pass_day": SubResource("Animation_ykapk"), &"upgrade": SubResource("Animation_2wykm") } [sub_resource type="Gradient" id="Gradient_2wykm"] offsets = PackedFloat32Array(0, 0.279476, 1) colors = PackedColorArray(1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1) [sub_resource type="GradientTexture2D" id="GradientTexture2D_id0t5"] gradient = SubResource("Gradient_2wykm") fill = 1 fill_from = Vector2(0.5, 0.5) [node name="RootGui" type="Control"] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 size_flags_horizontal = 3 size_flags_vertical = 3 mouse_filter = 1 script = ExtResource("1_udau0") [node name="MarginContainer" type="MarginContainer" parent="."] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 theme = ExtResource("2_nq5i2") [node name="PlayerInfo" type="Control" parent="MarginContainer"] custom_minimum_size = Vector2(337, 160) layout_mode = 2 size_flags_horizontal = 0 size_flags_vertical = 0 [node name="Background" type="TextureRect" parent="MarginContainer/PlayerInfo"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("3_n4kem") expand_mode = 2 stretch_mode = 5 [node name="EnergyInfo" type="HBoxContainer" parent="MarginContainer/PlayerInfo"] unique_name_in_owner = true layout_mode = 1 anchors_preset = -1 anchor_left = 0.281899 anchor_top = 0.384375 anchor_right = 0.281899 anchor_bottom = 0.584375 offset_left = -44.0 offset_top = -12.5 offset_right = 44.0 offset_bottom = 12.5 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/separation = 0 metadata/_edit_use_anchors_ = true [node name="Icon" type="TextureRect" parent="MarginContainer/PlayerInfo/EnergyInfo"] custom_minimum_size = Vector2(36.64, 0) layout_mode = 2 texture = ExtResource("4_k4juk") stretch_mode = 5 [node name="EnergyCount" type="Label" parent="MarginContainer/PlayerInfo/EnergyInfo"] unique_name_in_owner = true layout_mode = 2 theme = ExtResource("2_nq5i2") text = "0/3" label_settings = ExtResource("4_ujg5r") horizontal_alignment = 1 vertical_alignment = 1 [node name="DecontaminationCoverage" type="Label" parent="MarginContainer/PlayerInfo"] unique_name_in_owner = true layout_mode = 0 offset_left = 157.0 offset_top = 86.0 offset_right = 291.0 offset_bottom = 126.0 text = "100%" label_settings = ExtResource("4_ujg5r") horizontal_alignment = 1 vertical_alignment = 1 [node name="ItemInfo" type="TextureRect" parent="MarginContainer"] unique_name_in_owner = true custom_minimum_size = Vector2(0, 300) layout_mode = 2 size_flags_horizontal = 0 size_flags_vertical = 8 theme = ExtResource("2_nq5i2") texture = ExtResource("6_fovlv") expand_mode = 3 stretch_mode = 4 [node name="MarginContainer" type="MarginContainer" parent="MarginContainer/ItemInfo"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 theme_override_constants/margin_left = 35 theme_override_constants/margin_top = 35 theme_override_constants/margin_right = 20 theme_override_constants/margin_bottom = 75 [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/ItemInfo/MarginContainer"] layout_mode = 2 theme = ExtResource("2_nq5i2") [node name="ItemIcon" type="TextureRect" parent="MarginContainer/ItemInfo/MarginContainer/VBoxContainer"] unique_name_in_owner = true custom_minimum_size = Vector2(0, 50) layout_mode = 2 texture = SubResource("AtlasTexture_ek73b") expand_mode = 1 stretch_mode = 5 [node name="ItemName" type="Label" parent="MarginContainer/ItemInfo/MarginContainer/VBoxContainer"] unique_name_in_owner = true layout_mode = 2 text = "fdqsd" label_settings = SubResource("LabelSettings_ek73b") horizontal_alignment = 1 [node name="ItemDesc" type="Label" parent="MarginContainer/ItemInfo/MarginContainer/VBoxContainer"] unique_name_in_owner = true layout_mode = 2 size_flags_vertical = 3 text = "Ceci est une pelle qui sert exclusivement à faire des choses intéressantes. Ceci est une pelle qui sert exclusivement à faire des choses intéressantes. Ceci est une pelle qui sert exclusivement à faire des choses intéressantes. Ceci est une pelle qui sert exclusivement à faire des choses intéressantes. " label_settings = SubResource("LabelSettings_n4kem") autowrap_mode = 3 clip_text = true [node name="TopRightContent" type="HBoxContainer" parent="MarginContainer"] layout_mode = 2 size_flags_horizontal = 8 size_flags_vertical = 0 alignment = 1 [node name="DayCount" type="Label" parent="MarginContainer/TopRightContent"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 8 size_flags_vertical = 0 text = "Day 0" label_settings = ExtResource("4_ujg5r") vertical_alignment = 1 [node name="Pause" type="Button" parent="MarginContainer/TopRightContent"] layout_mode = 2 size_flags_horizontal = 8 size_flags_vertical = 0 focus_mode = 0 mouse_filter = 1 icon = ExtResource("9_2wykm") [node name="PassDayFade" type="ColorRect" parent="."] physics_interpolation_mode = 0 layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 2 color = Color(0.0627451, 0.0588235, 0.168627, 0) [node name="AnimationPlayer" type="AnimationPlayer" parent="."] libraries = { &"": SubResource("AnimationLibrary_n4kem") } [node name="GridContainer" type="GridContainer" parent="."] layout_mode = 0 offset_right = 40.0 offset_bottom = 40.0 [node name="Effect" type="TextureRect" parent="."] 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 mouse_filter = 2 texture = SubResource("GradientTexture2D_id0t5") [connection signal="pressed" from="MarginContainer/TopRightContent/Pause" to="." method="_on_pause_pressed"]