[gd_scene load_steps=30 format=3 uid="uid://boswew1ihrw7p"]

[ext_resource type="Script" path="res://src/ui/crosshair.gd" id="1_6vonm"]
[ext_resource type="Shader" path="res://src/shaders/invert.gdshader" id="2_q710s"]
[ext_resource type="Texture2D" uid="uid://bepxfquua1v6" path="res://assets/textures/crosshair_circle.png" id="3_sofbx"]
[ext_resource type="Texture2D" uid="uid://hmt7s15m7eto" path="res://assets/textures/crosshair_dot.png" id="4_uuure"]
[ext_resource type="Script" path="res://src/ui/compass.gd" id="5_kawl0"]
[ext_resource type="Texture2D" uid="uid://mmit1txxkbvb" path="res://assets/textures/compass.png" id="6_lhld6"]
[ext_resource type="Script" path="res://src/ui/overlay_effects.gd" id="7_5y016"]
[ext_resource type="Theme" uid="uid://cq6k0lttfws5w" path="res://src/HUD_theme.tres" id="8_y74gd"]
[ext_resource type="Shader" path="res://src/shaders/speed_lines.gdshader" id="9_5roxj"]
[ext_resource type="Shader" path="res://src/shaders/death_fade_compat.gdshader" id="10_xxkgw"]
[ext_resource type="Script" path="res://src/ui/structure_meter.gd" id="11_j8d8e"]
[ext_resource type="Texture2D" uid="uid://bgujaq21oq2mm" path="res://assets/textures/structure.png" id="12_jbttb"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_ag8l2"]
shader = ExtResource("2_q710s")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_csvvm"]
shader = ExtResource("2_q710s")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_hre76"]
shader = ExtResource("2_q710s")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_c6880"]
shader = ExtResource("2_q710s")

[sub_resource type="FastNoiseLite" id="FastNoiseLite_gkq2g"]
noise_type = 0
frequency = 0.1344

[sub_resource type="NoiseTexture2D" id="NoiseTexture2D_jnd2r"]
noise = SubResource("FastNoiseLite_gkq2g")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_d76dl"]
shader = ExtResource("9_5roxj")
shader_parameter/line_count = 2.0
shader_parameter/line_density = 0.0
shader_parameter/line_falloff = 0.0
shader_parameter/mask_size = 0.166
shader_parameter/mask_edge = 1.0
shader_parameter/animation_speed = 20.0
shader_parameter/noise = SubResource("NoiseTexture2D_jnd2r")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_rpcp4"]
shader = ExtResource("10_xxkgw")
shader_parameter/threshold = 1.0
shader_parameter/dimensions = Vector2(64, 32)
shader_parameter/speed = 0.5
shader_parameter/color_hi = Color(1, 1, 1, 1)
shader_parameter/color_low = Color(0, 0, 0, 0)

[sub_resource type="ShaderMaterial" id="ShaderMaterial_3nxtv"]
shader = ExtResource("2_q710s")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_r85sm"]
shader = ExtResource("2_q710s")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_say15"]
shader = ExtResource("2_q710s")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_klw0t"]
shader = ExtResource("2_q710s")

[sub_resource type="Animation" id="Animation_4ygdu"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("OverlayEffects/SpeedLinesOverlay:material:shader_parameter/line_density")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [0.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("OverlayEffects/DestructureLabel:visible")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("OverlayEffects/DeathOverlay:visible")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("OverlayEffects/DeathOverlay:material:shader_parameter/threshold")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [1.0]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("MarginContainer:visible")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}

[sub_resource type="Animation" id="Animation_lm3ec"]
resource_name = "boost_lines"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("OverlayEffects/SpeedLinesOverlay:material:shader_parameter/line_density")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 1),
"transitions": PackedFloat32Array(1, 1.4, 1),
"update": 0,
"values": [0.0, 0.4, 0.0]
}

[sub_resource type="Animation" id="Animation_cpxxb"]
resource_name = "death_overlay"
length = 2.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("OverlayEffects/DeathOverlay:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("OverlayEffects/DeathOverlay:material:shader_parameter/threshold")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0, 2),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [1.0, 0.0]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("MarginContainer:visible")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(0, 0.9, 1, 1.4, 1.5, 1.6),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
"update": 1,
"values": [true, false, true, false, true, false]
}

[sub_resource type="Animation" id="Animation_8kp5l"]
resource_name = "destructure_alert"
length = 5.0
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("OverlayEffects/DestructureLabel:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.5, 1, 1.5, 2, 2.5, 3, 5),
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1),
"update": 1,
"values": [true, false, true, false, true, false, true, false]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_w4b5c"]
_data = {
"RESET": SubResource("Animation_4ygdu"),
"boost_lines": SubResource("Animation_lm3ec"),
"death_overlay": SubResource("Animation_cpxxb"),
"destructure_alert": SubResource("Animation_8kp5l")
}

[node name="UI" type="Control"]
z_index = 1
custom_minimum_size = Vector2(1900, 512)
layout_mode = 3
anchors_preset = 0

[node name="Crosshair" type="CenterContainer" parent="." groups=["CrosshairGroup"]]
layout_mode = 0
offset_right = 1900.0
offset_bottom = 512.0
script = ExtResource("1_6vonm")

[node name="CrosshairContainer" type="Control" parent="Crosshair"]
custom_minimum_size = Vector2(32, 32)
layout_mode = 2

[node name="CrosshairCircle" type="TextureRect" parent="Crosshair/CrosshairContainer"]
material = SubResource("ShaderMaterial_ag8l2")
layout_mode = 2
offset_right = 32.0
offset_bottom = 32.0
texture = ExtResource("3_sofbx")
stretch_mode = 2

[node name="CrosshairDot" type="TextureRect" parent="Crosshair/CrosshairContainer"]
material = SubResource("ShaderMaterial_csvvm")
layout_mode = 2
offset_right = 32.0
offset_bottom = 32.0
texture = ExtResource("4_uuure")

[node name="Compass" type="Control" parent="." groups=["CompassGroup"]]
clip_contents = true
anchors_preset = 0
offset_left = 760.0
offset_top = 20.0
offset_right = 1140.0
offset_bottom = 52.0
script = ExtResource("5_kawl0")

[node name="CompassTexture" type="TextureRect" parent="Compass"]
material = SubResource("ShaderMaterial_hre76")
custom_minimum_size = Vector2(2304, 32)
layout_mode = 0
offset_right = 2304.0
offset_bottom = 32.0
texture = ExtResource("6_lhld6")
stretch_mode = 1

[node name="OverlayEffects" type="Control" parent="." groups=["OverlayEffectsGroup"]]
anchors_preset = 0
offset_right = 1900.0
offset_bottom = 512.0
script = ExtResource("7_5y016")

[node name="DestructureLabel" type="Label" parent="OverlayEffects"]
visible = false
material = SubResource("ShaderMaterial_c6880")
layout_mode = 2
offset_left = 443.0
offset_top = 295.0
offset_right = 1457.0
offset_bottom = 372.0
theme = ExtResource("8_y74gd")
theme_override_font_sizes/font_size = 76
text = "hull destructured
"

[node name="SpeedLinesOverlay" type="ColorRect" parent="OverlayEffects"]
material = SubResource("ShaderMaterial_d76dl")
layout_mode = 0
offset_right = 1900.0
offset_bottom = 512.0

[node name="DeathOverlay" type="ColorRect" parent="OverlayEffects"]
visible = false
material = SubResource("ShaderMaterial_rpcp4")
layout_mode = 0
offset_right = 1900.0
offset_bottom = 512.0

[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 0
offset_right = 192.0
offset_bottom = 512.0
theme_override_constants/margin_left = 32
theme_override_constants/margin_top = 32
theme_override_constants/margin_right = 32
theme_override_constants/margin_bottom = 32

[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer"]
layout_mode = 2
theme_override_constants/separation = 32

[node name="HeatContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer"]
custom_minimum_size = Vector2(48, 0)
layout_mode = 2
size_flags_horizontal = 4

[node name="HeatMeter" type="ProgressBar" parent="MarginContainer/HBoxContainer/HeatContainer" groups=["HeatMeterGroup"]]
material = SubResource("ShaderMaterial_3nxtv")
layout_mode = 2
size_flags_vertical = 3
theme = ExtResource("8_y74gd")
fill_mode = 3
show_percentage = false

[node name="Control" type="Control" parent="MarginContainer/HBoxContainer/HeatContainer"]
custom_minimum_size = Vector2(48, 17)
layout_mode = 2

[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/HeatContainer/Control"]
material = SubResource("ShaderMaterial_r85sm")
layout_mode = 2
offset_left = -1.0
offset_right = 51.0
offset_bottom = 17.0
size_flags_horizontal = 0
theme = ExtResource("8_y74gd")
text = "heat"

[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer"]
custom_minimum_size = Vector2(48, 0)
layout_mode = 2
size_flags_horizontal = 4

[node name="StructureContainer" type="HBoxContainer" parent="MarginContainer/HBoxContainer/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 10

[node name="LabelRotation" type="Control" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer"]
custom_minimum_size = Vector2(11, 128)
layout_mode = 2
size_flags_vertical = 8

[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/LabelRotation"]
material = SubResource("ShaderMaterial_say15")
layout_mode = 2
offset_right = 90.0
offset_bottom = 11.0
rotation = 1.5708
pivot_offset = Vector2(0, 13)
theme = ExtResource("8_y74gd")
text = "structure"

[node name="StructureMeter" type="VBoxContainer" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer" groups=["StructureMeterGroup"]]
layout_mode = 2
alignment = 2
script = ExtResource("11_j8d8e")

[node name="StructureIcon1" type="TextureRect" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"]
material = SubResource("ShaderMaterial_klw0t")
layout_mode = 2
texture = ExtResource("12_jbttb")

[node name="StructureIcon2" type="TextureRect" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"]
material = SubResource("ShaderMaterial_klw0t")
layout_mode = 2
texture = ExtResource("12_jbttb")

[node name="StructureIcon3" type="TextureRect" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"]
material = SubResource("ShaderMaterial_klw0t")
layout_mode = 2
texture = ExtResource("12_jbttb")

[node name="StructureIcon4" type="TextureRect" parent="MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"]
material = SubResource("ShaderMaterial_klw0t")
layout_mode = 2
texture = ExtResource("12_jbttb")

[node name="DamageContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/VBoxContainer"]
custom_minimum_size = Vector2(0, 256)
layout_mode = 2

[node name="DamageMeter" type="ProgressBar" parent="MarginContainer/HBoxContainer/VBoxContainer/DamageContainer" groups=["DamageMeterGroup"]]
material = SubResource("ShaderMaterial_3nxtv")
layout_mode = 2
size_flags_vertical = 3
theme = ExtResource("8_y74gd")
fill_mode = 3
show_percentage = false

[node name="CenterContainer" type="CenterContainer" parent="MarginContainer/HBoxContainer/VBoxContainer/DamageContainer"]
layout_mode = 2

[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/VBoxContainer/DamageContainer/CenterContainer"]
material = SubResource("ShaderMaterial_r85sm")
layout_mode = 2
size_flags_horizontal = 4
theme = ExtResource("8_y74gd")
text = "dmg"

[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_w4b5c")
}
