128 lines
3.8 KiB
Plaintext
128 lines
3.8 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://12nak7amd1uq"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://baqrmhsgqda6v" path="res://gui/player_info/player_info.tscn" id="1_8kw6x"]
|
|
[ext_resource type="Script" uid="uid://cqao7n800qy40" path="res://gui/scripts/root_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://dcgnamu7sb3ov" path="res://gui/player_info/assets/icons/bolt.svg" id="4_k4juk"]
|
|
[ext_resource type="LabelSettings" uid="uid://dqwayi8yjwau2" path="res://gui/ressources/default_label_settings.tres" id="4_ujg5r"]
|
|
|
|
[sub_resource type="Animation" id="Animation_k4juk"]
|
|
resource_name = "recharge_fade_in"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("RechargeFade:color")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Color(0, 0, 0, 0), Color(0, 0, 0, 1)]
|
|
}
|
|
|
|
[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("RechargeFade:color")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(0, 0, 0, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_fovlv"]
|
|
resource_name = "recharge_fade_out"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("RechargeFade:color")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0.166667, 1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Color(0, 0, 0, 1), Color(0, 0, 0, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_n4kem"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_iyvkh"),
|
|
&"recharge_fade_in": SubResource("Animation_k4juk"),
|
|
&"recharge_fade_out": SubResource("Animation_fovlv")
|
|
}
|
|
|
|
[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
|
|
script = ExtResource("1_udau0")
|
|
|
|
[node name="GameAction" type="TextureButton" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[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" parent="MarginContainer" instance=ExtResource("1_8kw6x")]
|
|
layout_mode = 2
|
|
|
|
[node name="DayPass" type="Button" parent="MarginContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 8
|
|
size_flags_vertical = 8
|
|
focus_mode = 0
|
|
theme = ExtResource("2_nq5i2")
|
|
text = "Recharge"
|
|
icon = ExtResource("4_k4juk")
|
|
|
|
[node name="DayCount" type="Label" parent="MarginContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 8
|
|
size_flags_vertical = 0
|
|
label_settings = ExtResource("4_ujg5r")
|
|
|
|
[node name="RechargeFade" 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, 0, 0, 0)
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_n4kem")
|
|
}
|
|
|
|
[connection signal="player_stats_updated" from="." to="MarginContainer/PlayerInfo" method="_on_root_gui_player_stats_updated"]
|
|
[connection signal="button_down" from="GameAction" to="." method="_on_game_action_button_down"]
|
|
[connection signal="pressed" from="MarginContainer/DayPass" to="." method="_on_day_pass_pressed"]
|