2025-04-19 10:01:37 -06:00
|
|
|
[gd_scene load_steps=11 format=3 uid="uid://dq1x21tq06dud"]
|
2025-03-05 14:46:13 -07:00
|
|
|
|
|
|
|
[ext_resource type="Theme" uid="uid://b07fevr214mmr" path="res://src/ui/hud/hud_theme.tres" id="1_lirk3"]
|
2025-03-06 16:06:17 -07:00
|
|
|
[ext_resource type="Script" uid="uid://lrsv0185bfu" path="res://src/ui/hud/player_hud.gd" id="2_j6lpx"]
|
2025-03-19 17:27:50 -06:00
|
|
|
[ext_resource type="Script" uid="uid://bdsv404evn4fk" path="res://src/ui/hud/interact_hud.gd" id="3_n6jee"]
|
2025-04-19 09:49:07 -06:00
|
|
|
[ext_resource type="FontFile" uid="uid://qadtckvw0t3l" path="res://assets/fonts/fontawesome-free-6.7.2-desktop/otfs/Font Awesome 6 Free-Solid-900.otf" id="4_2q5it"]
|
2025-04-19 10:01:37 -06:00
|
|
|
[ext_resource type="PackedScene" uid="uid://b47goj32i6sdh" path="res://src/ui/elements/input_prompt/input_prompt.tscn" id="4_iwjh7"]
|
2025-04-18 12:53:08 -06:00
|
|
|
[ext_resource type="Script" uid="uid://cjs2fen6jo0g0" path="res://src/ui/rumbler.gd" id="4_ud8na"]
|
2025-03-05 14:46:13 -07:00
|
|
|
|
2025-03-14 11:46:49 -06:00
|
|
|
[sub_resource type="Animation" id="Animation_n6jee"]
|
|
|
|
length = 0.001
|
2025-03-13 13:57:50 -06:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2025-04-18 12:53:08 -06:00
|
|
|
tracks/0/path = NodePath("GrunkAlertWarning:modulate")
|
2025-03-14 11:46:49 -06:00
|
|
|
tracks/0/interp = 1
|
2025-03-13 13:57:50 -06:00
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
2025-03-14 11:46:49 -06:00
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
2025-03-13 13:57:50 -06:00
|
|
|
"update": 0,
|
2025-03-14 11:46:49 -06:00
|
|
|
"values": [Color(1, 1, 1, 0)]
|
2025-03-13 13:57:50 -06:00
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
2025-04-18 12:53:08 -06:00
|
|
|
tracks/1/path = NodePath("Rumbler/GrunkAlert2:modulate")
|
2025-03-13 13:57:50 -06:00
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
2025-03-14 11:46:49 -06:00
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
2025-03-13 13:57:50 -06:00
|
|
|
"update": 0,
|
2025-03-14 11:46:49 -06:00
|
|
|
"values": [Color(1, 1, 1, 0)]
|
2025-03-13 13:57:50 -06:00
|
|
|
}
|
2025-03-20 22:45:19 -06:00
|
|
|
tracks/2/type = "value"
|
|
|
|
tracks/2/imported = false
|
|
|
|
tracks/2/enabled = true
|
|
|
|
tracks/2/path = NodePath("TankAlert: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)]
|
|
|
|
}
|
2025-03-13 13:57:50 -06:00
|
|
|
|
2025-03-14 11:46:49 -06:00
|
|
|
[sub_resource type="Animation" id="Animation_5be8f"]
|
|
|
|
resource_name = "grunk_alert"
|
2025-04-18 12:53:08 -06:00
|
|
|
length = 4.6
|
2025-03-14 11:46:49 -06:00
|
|
|
step = 0.2
|
2025-03-13 13:57:50 -06:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2025-04-18 12:53:08 -06:00
|
|
|
tracks/0/path = NodePath("GrunkAlertWarning:modulate")
|
2025-03-14 11:46:49 -06:00
|
|
|
tracks/0/interp = 2
|
2025-03-13 13:57:50 -06:00
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
2025-03-14 11:46:49 -06:00
|
|
|
"times": PackedFloat32Array(0, 0.2, 0.4, 0.6, 0.8, 1, 1.2, 1.4, 1.6),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1),
|
2025-03-13 13:57:50 -06:00
|
|
|
"update": 0,
|
2025-03-14 11:46:49 -06:00
|
|
|
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
2025-03-13 13:57:50 -06:00
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
2025-04-18 12:53:08 -06:00
|
|
|
tracks/1/path = NodePath("Rumbler/GrunkAlert2:modulate")
|
2025-03-13 13:57:50 -06:00
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
2025-04-18 12:53:08 -06:00
|
|
|
"times": PackedFloat32Array(0, 1.6, 2.2, 2.8, 3.4, 4.00479, 4.6),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
2025-03-13 13:57:50 -06:00
|
|
|
}
|
|
|
|
|
2025-03-20 22:45:19 -06:00
|
|
|
[sub_resource type="Animation" id="Animation_ud8na"]
|
|
|
|
resource_name = "tank_full_alert"
|
|
|
|
length = 3.6
|
|
|
|
step = 0.1
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("TankAlert:modulate")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0, 0.6, 1.2, 1.8, 2.4, 3, 3.6),
|
|
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1),
|
|
|
|
"update": 0,
|
|
|
|
"values": [Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0), Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
|
|
|
|
}
|
|
|
|
|
2025-03-13 13:57:50 -06:00
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ud8na"]
|
|
|
|
_data = {
|
|
|
|
&"RESET": SubResource("Animation_n6jee"),
|
2025-03-20 22:45:19 -06:00
|
|
|
&"grunk_alert": SubResource("Animation_5be8f"),
|
|
|
|
&"tank_full_alert": SubResource("Animation_ud8na")
|
2025-03-13 13:57:50 -06:00
|
|
|
}
|
|
|
|
|
2025-03-05 14:46:13 -07:00
|
|
|
[node name="PlayerHUD" type="Control"]
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
mouse_filter = 2
|
|
|
|
theme = ExtResource("1_lirk3")
|
|
|
|
script = ExtResource("2_j6lpx")
|
|
|
|
|
|
|
|
[node name="InteractHUD" type="Control" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
modulate = Color(1, 1, 1, 0.866667)
|
|
|
|
custom_minimum_size = Vector2(400, 400)
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
offset_left = -200.0
|
|
|
|
offset_top = -100.0
|
|
|
|
offset_right = 200.0
|
|
|
|
offset_bottom = 100.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
mouse_filter = 2
|
2025-03-19 17:27:50 -06:00
|
|
|
script = ExtResource("3_n6jee")
|
2025-03-05 14:46:13 -07:00
|
|
|
|
2025-03-19 17:27:50 -06:00
|
|
|
[node name="InteractName" type="Label" parent="InteractHUD"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 5
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
offset_left = -20.0
|
|
|
|
offset_right = 20.0
|
|
|
|
offset_bottom = 45.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="InteractHUD"]
|
2025-03-05 14:46:13 -07:00
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 7
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 1.0
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 1.0
|
2025-03-19 17:27:50 -06:00
|
|
|
offset_left = -85.0
|
|
|
|
offset_top = -45.0
|
|
|
|
offset_right = 85.0
|
2025-03-05 14:46:13 -07:00
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 0
|
2025-03-19 17:27:50 -06:00
|
|
|
|
2025-04-19 10:01:37 -06:00
|
|
|
[node name="InputPrompt" parent="InteractHUD/HBoxContainer" instance=ExtResource("4_iwjh7")]
|
2025-03-19 17:27:50 -06:00
|
|
|
layout_mode = 2
|
2025-04-19 10:01:37 -06:00
|
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
|
|
theme_override_constants/outline_size = 16
|
|
|
|
text = "❓"
|
|
|
|
action = &"interact"
|
|
|
|
show_name = false
|
|
|
|
|
|
|
|
[node name="Spacer" type="Label" parent="InteractHUD/HBoxContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
text = " - "
|
2025-03-19 17:27:50 -06:00
|
|
|
|
|
|
|
[node name="InteractVerb" type="Label" parent="InteractHUD/HBoxContainer"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 2
|
|
|
|
text = "use"
|
2025-03-07 19:26:12 -07:00
|
|
|
|
2025-03-13 13:57:50 -06:00
|
|
|
[node name="AlertHUD" type="Control" parent="."]
|
|
|
|
custom_minimum_size = Vector2(800, 600)
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
offset_left = -20.0
|
|
|
|
offset_top = -20.0
|
|
|
|
offset_right = 20.0
|
|
|
|
offset_bottom = 20.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
mouse_filter = 1
|
|
|
|
|
2025-03-20 22:45:19 -06:00
|
|
|
[node name="TankAlert" type="Label" parent="AlertHUD"]
|
|
|
|
modulate = Color(1, 1, 1, 0)
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 5
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
offset_left = -268.0
|
|
|
|
offset_right = 268.0
|
|
|
|
offset_bottom = 88.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
theme_type_variation = &"AlertLabel"
|
2025-04-19 09:49:07 -06:00
|
|
|
text = "HUD_TANK_WARNING"
|
2025-03-20 22:45:19 -06:00
|
|
|
horizontal_alignment = 1
|
|
|
|
|
2025-04-19 09:49:07 -06:00
|
|
|
[node name="GrunkAlertWarning" type="HBoxContainer" parent="AlertHUD"]
|
2025-03-13 13:57:50 -06:00
|
|
|
modulate = Color(1, 1, 1, 0)
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 5
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_right = 0.5
|
2025-04-19 09:49:07 -06:00
|
|
|
offset_left = -264.0
|
|
|
|
offset_right = 264.0
|
|
|
|
offset_bottom = 82.0
|
2025-03-13 13:57:50 -06:00
|
|
|
grow_horizontal = 2
|
|
|
|
theme_type_variation = &"AlertLabel"
|
2025-04-19 09:49:07 -06:00
|
|
|
theme_override_constants/separation = 32
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
[node name="Icon" type="Label" parent="AlertHUD/GrunkAlertWarning"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_type_variation = &"AlertLabel"
|
|
|
|
theme_override_fonts/font = ExtResource("4_2q5it")
|
|
|
|
text = ""
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="Warning" type="Label" parent="AlertHUD/GrunkAlertWarning"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_type_variation = &"AlertLabel"
|
|
|
|
text = "HUD_WARNING"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="Icon2" type="Label" parent="AlertHUD/GrunkAlertWarning"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme_type_variation = &"AlertLabel"
|
|
|
|
theme_override_fonts/font = ExtResource("4_2q5it")
|
|
|
|
text = ""
|
2025-03-13 13:57:50 -06:00
|
|
|
horizontal_alignment = 1
|
|
|
|
|
2025-04-18 12:53:08 -06:00
|
|
|
[node name="Rumbler" type="Control" parent="AlertHUD"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
2025-04-19 16:18:12 -06:00
|
|
|
offset_left = -406.72
|
|
|
|
offset_top = -295.754
|
|
|
|
offset_right = -406.72
|
|
|
|
offset_bottom = -295.754
|
2025-04-18 12:53:08 -06:00
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
script = ExtResource("4_ud8na")
|
2025-04-19 09:49:07 -06:00
|
|
|
intensity = 2.0
|
2025-04-18 12:53:08 -06:00
|
|
|
metadata/_custom_type_script = "uid://cjs2fen6jo0g0"
|
|
|
|
|
|
|
|
[node name="GrunkAlert2" type="Control" parent="AlertHUD/Rumbler"]
|
2025-03-13 13:57:50 -06:00
|
|
|
modulate = Color(1, 1, 1, 0)
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 5
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_right = 0.5
|
2025-04-18 12:53:08 -06:00
|
|
|
offset_left = -208.0
|
|
|
|
offset_right = 1008.0
|
|
|
|
offset_bottom = 253.0
|
|
|
|
grow_horizontal = 2
|
2025-04-18 15:19:54 -06:00
|
|
|
mouse_filter = 2
|
2025-04-18 12:53:08 -06:00
|
|
|
theme_type_variation = &"AlertLabel"
|
|
|
|
|
|
|
|
[node name="AlertLine1" type="Label" parent="AlertHUD/Rumbler/GrunkAlert2"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
offset_left = -2581.0
|
|
|
|
offset_top = -426.5
|
|
|
|
offset_right = 2581.0
|
|
|
|
offset_bottom = 426.5
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
scale = Vector2(0.3, 1)
|
|
|
|
pivot_offset = Vector2(3164, 426.5)
|
|
|
|
theme_type_variation = &"AlertLabel"
|
|
|
|
theme_override_constants/outline_size = 32
|
|
|
|
theme_override_font_sizes/font_size = 666
|
|
|
|
text = "! GRUNK ALERT !"
|
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="AlertLine2" type="Label" parent="AlertHUD/Rumbler/GrunkAlert2"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 8
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 0.5
|
|
|
|
offset_left = -608.0
|
|
|
|
offset_top = 264.03
|
|
|
|
offset_right = 608.0
|
|
|
|
offset_bottom = 431.03
|
2025-03-13 13:57:50 -06:00
|
|
|
grow_horizontal = 2
|
2025-04-18 12:53:08 -06:00
|
|
|
grow_vertical = 2
|
2025-03-13 13:57:50 -06:00
|
|
|
theme_type_variation = &"AlertLabel"
|
2025-04-19 09:49:07 -06:00
|
|
|
text = "HUD_ALERT_MSG"
|
2025-03-13 13:57:50 -06:00
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="AlertPlayer" type="AnimationPlayer" parent="AlertHUD"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
libraries = {
|
|
|
|
&"": SubResource("AnimationLibrary_ud8na")
|
|
|
|
}
|