* Changement de l'UI, ajouts de l'inspecteur par carte et changement de police * Ajout d'un semblant d'exploration * Ajout de la sauvegarde des entités * Restructuration mineure de l'arborescence * Fix divers et réécriture des textes
430 lines
13 KiB
Plaintext
430 lines
13 KiB
Plaintext
[gd_scene load_steps=29 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="PackedScene" uid="uid://fnv0qhkh40mv" path="res://gui/game/announce/announce.tscn" id="4_h6540"]
|
|
[ext_resource type="Texture2D" uid="uid://dcgnamu7sb3ov" path="res://common/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://bt3g5bmar0icf" path="res://common/icons/growth.svg" id="7_id0t5"]
|
|
[ext_resource type="Texture2D" uid="uid://b5cuxgisrsfgt" path="res://common/icons/player-pause.svg" id="9_2wykm"]
|
|
[ext_resource type="PackedScene" uid="uid://clicjf8ts51h8" path="res://gui/game/inventory_gui/inventory_gui.tscn" id="9_id0t5"]
|
|
|
|
[sub_resource type="Gradient" id="Gradient_id0t5"]
|
|
interpolation_mode = 1
|
|
offsets = PackedFloat32Array(0, 0.115169, 0.41573, 0.620786, 0.924157)
|
|
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1)
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_ykapk"]
|
|
gradient = SubResource("Gradient_id0t5")
|
|
fill_to = Vector2(1, 1)
|
|
repeat = 1
|
|
|
|
[sub_resource type="Animation" id="Animation_l73to"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(0.950568, 0, 0.346412, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_p6blc"]
|
|
resource_name = "default"
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 1.03333),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [Color(0.950568, 0, 0.346412, 1), Color(0.999996, 0.39403, 0.49625, 1), Color(0.950568, 0, 0.346412, 1)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_l3q4a"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_l73to"),
|
|
&"default": SubResource("Animation_p6blc")
|
|
}
|
|
|
|
[sub_resource type="Gradient" id="Gradient_dr1y2"]
|
|
interpolation_mode = 1
|
|
offsets = PackedFloat32Array(0, 0.697674)
|
|
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0)
|
|
|
|
[sub_resource type="GradientTexture2D" id="GradientTexture2D_h6540"]
|
|
gradient = SubResource("Gradient_dr1y2")
|
|
width = 50
|
|
height = 50
|
|
fill = 1
|
|
fill_from = Vector2(0.504274, 0.5)
|
|
|
|
[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)
|
|
|
|
[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("Effect:modulate")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 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="AnimationLibrary" id="AnimationLibrary_n4kem"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_iyvkh"),
|
|
&"not_permitted": SubResource("Animation_id0t5"),
|
|
&"pass_day": SubResource("Animation_ykapk")
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_l3q4a"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:modulate")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_2wykm"]
|
|
resource_name = "upgrade"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:modulate")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2, 0.9),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [Color(0.6, 0.580392, 0, 0), Color(0.600196, 0.581106, 0, 0.392157), Color(0.6, 0.580392, 0, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_nhqnj"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_l3q4a"),
|
|
&"upgrade": SubResource("Animation_2wykm")
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_mbdxg"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("NoEnergyLeft:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, -100)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_w16yr"]
|
|
resource_name = "no_energy_left_appear"
|
|
length = 0.5
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("NoEnergyLeft:position")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0.0666667, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, -100), Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_p0xoq"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_mbdxg"),
|
|
&"no_energy_left_appear": SubResource("Animation_w16yr")
|
|
}
|
|
|
|
[node name="GameGui" 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="NoEnergyLeft" type="VBoxContainer" parent="."]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
modulate = Color(0.950568, 0, 0.346412, 1)
|
|
layout_mode = 1
|
|
anchors_preset = 10
|
|
anchor_right = 1.0
|
|
offset_top = -100.0
|
|
offset_bottom = 2.0
|
|
grow_horizontal = 2
|
|
theme = ExtResource("2_nq5i2")
|
|
theme_override_constants/separation = 12
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="NoEnergyLeft"]
|
|
custom_minimum_size = Vector2(0, 40)
|
|
layout_mode = 2
|
|
texture = SubResource("GradientTexture2D_ykapk")
|
|
expand_mode = 1
|
|
stretch_mode = 1
|
|
|
|
[node name="Label" type="Label" parent="NoEnergyLeft"]
|
|
layout_mode = 2
|
|
theme = ExtResource("2_nq5i2")
|
|
text = "No energy left"
|
|
label_settings = ExtResource("4_ujg5r")
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="BlinkAnimation" type="AnimationPlayer" parent="NoEnergyLeft"]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_l3q4a")
|
|
}
|
|
autoplay = "default"
|
|
|
|
[node name="Announce" parent="." instance=ExtResource("4_h6540")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
|
|
[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.27299702
|
|
anchor_top = 0.453125
|
|
anchor_right = 0.27299702
|
|
anchor_bottom = 0.496875
|
|
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")
|
|
expand_mode = 2
|
|
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 = "X/X"
|
|
label_settings = ExtResource("4_ujg5r")
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="QuotaInfo" type="CenterContainer" parent="MarginContainer/PlayerInfo"]
|
|
layout_mode = 0
|
|
offset_left = 176.0
|
|
offset_top = 83.0
|
|
offset_right = 247.0
|
|
offset_bottom = 133.0
|
|
|
|
[node name="QuotaProgressBar" type="TextureProgressBar" parent="MarginContainer/PlayerInfo/QuotaInfo"]
|
|
unique_name_in_owner = true
|
|
modulate = Color(0.1801, 0.349497, 0.456794, 1)
|
|
layout_mode = 2
|
|
fill_mode = 4
|
|
texture_progress = SubResource("GradientTexture2D_h6540")
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/PlayerInfo/QuotaInfo"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 2
|
|
|
|
[node name="QuotaProgressText" type="Label" parent="MarginContainer/PlayerInfo/QuotaInfo/HBoxContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "X"
|
|
label_settings = ExtResource("4_ujg5r")
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="MarginContainer/PlayerInfo/QuotaInfo/HBoxContainer"]
|
|
custom_minimum_size = Vector2(30, 30)
|
|
layout_mode = 2
|
|
texture = ExtResource("7_id0t5")
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
|
|
[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="Inventory" parent="MarginContainer" instance=ExtResource("9_id0t5")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 8
|
|
|
|
[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="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")
|
|
|
|
[node name="PassDayAnimation" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_n4kem")
|
|
}
|
|
|
|
[node name="EffectAnimation" type="AnimationPlayer" parent="."]
|
|
root_node = NodePath("../Effect")
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_nhqnj")
|
|
}
|
|
|
|
[node name="NoEnergyLeftAnimation" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_p0xoq")
|
|
}
|
|
|
|
[connection signal="pressed" from="MarginContainer/TopRightContent/Pause" to="." method="_on_pause_pressed"]
|