[gd_scene load_steps=28 format=3 uid="uid://d75odchj18u1"]

[ext_resource type="Script" path="res://src/ui/crosshair.gd" id="1_8vuwf"]
[ext_resource type="Shader" path="res://src/shaders/threshold.gdshader" id="1_bg1gg"]
[ext_resource type="PackedScene" uid="uid://drbiyuustse8b" path="res://src/maps/arena_map/arena_map.tscn" id="1_bvhtq"]
[ext_resource type="Shader" path="res://src/shaders/invert.gdshader" id="1_rg2hr"]
[ext_resource type="Texture2D" uid="uid://bepxfquua1v6" path="res://assets/textures/crosshair_circle.png" id="3_1ycfj"]
[ext_resource type="Texture2D" uid="uid://hmt7s15m7eto" path="res://assets/textures/crosshair_dot.png" id="3_3u7nt"]
[ext_resource type="Texture2D" uid="uid://mmit1txxkbvb" path="res://assets/textures/compass.png" id="5_6lb45"]
[ext_resource type="Script" path="res://src/ui/compass.gd" id="5_ovssf"]
[ext_resource type="Script" path="res://src/ui/overlay_effects.gd" id="7_o2wgd"]
[ext_resource type="Shader" path="res://src/shaders/speed_lines.gdshader" id="7_sbbkm"]
[ext_resource type="Theme" uid="uid://cq6k0lttfws5w" path="res://src/HUD_theme.tres" id="9_ph71t"]
[ext_resource type="Texture2D" uid="uid://bgujaq21oq2mm" path="res://assets/textures/structure.png" id="10_e82wu"]
[ext_resource type="Script" path="res://src/ui/structure_meter.gd" id="10_w8rja"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_ag8l2"]
shader = ExtResource("1_rg2hr")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_csvvm"]
shader = ExtResource("1_rg2hr")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_hre76"]
shader = ExtResource("1_rg2hr")

[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("7_sbbkm")
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_3nxtv"]
shader = ExtResource("1_rg2hr")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_r85sm"]
shader = ExtResource("1_rg2hr")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_say15"]
shader = ExtResource("1_rg2hr")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_klw0t"]
shader = ExtResource("1_rg2hr")

[sub_resource type="ShaderMaterial" id="ShaderMaterial_ubp15"]
shader = ExtResource("1_bg1gg")
shader_parameter/color_low = Color(0, 0, 0, 1)
shader_parameter/color_hi = Color(1, 1, 1, 1)
shader_parameter/threshold = 0.455
shader_parameter/contrast = 1.0
shader_parameter/offset = 0.0

[sub_resource type="Animation" id="Animation_g25ja"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("UI/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]
}

[sub_resource type="Animation" id="Animation_vu38v"]
resource_name = "boost_lines"
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("UI/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="AnimationLibrary" id="AnimationLibrary_qjn7a"]
_data = {
"RESET": SubResource("Animation_g25ja"),
"boost_lines": SubResource("Animation_vu38v")
}

[node name="Main" type="Control"]
custom_minimum_size = Vector2(1900, 768)
layout_mode = 3
anchors_preset = 0

[node name="UI" type="Control" parent="."]
z_index = 1
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0

[node name="Crosshair" type="CenterContainer" parent="UI" groups=["CrosshairGroup"]]
layout_mode = 0
offset_right = 1900.0
offset_bottom = 768.0
script = ExtResource("1_8vuwf")

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

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

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

[node name="Compass" type="Control" parent="UI" 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_ovssf")

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

[node name="OverlayEffects" type="Control" parent="UI" groups=["OverlayEffectsGroup"]]
anchors_preset = 0
offset_right = 1900.0
offset_bottom = 768.0
script = ExtResource("7_o2wgd")

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

[node name="MarginContainer" type="MarginContainer" parent="UI"]
layout_mode = 0
offset_right = 160.0
offset_bottom = 768.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="UI/MarginContainer"]
layout_mode = 2
theme_override_constants/separation = 32

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

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

[node name="CenterContainer" type="CenterContainer" parent="UI/MarginContainer/HBoxContainer/HeatContainer"]
layout_mode = 2

[node name="Label" type="Label" parent="UI/MarginContainer/HBoxContainer/HeatContainer/CenterContainer"]
material = SubResource("ShaderMaterial_r85sm")
layout_mode = 2
size_flags_horizontal = 0
theme = ExtResource("9_ph71t")
text = "heat"

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

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

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

[node name="Label" type="Label" parent="UI/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(4, 4)
theme = ExtResource("9_ph71t")
text = "structure"

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

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

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

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

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

[node name="StructureIcon5" type="TextureRect" parent="UI/MarginContainer/HBoxContainer/VBoxContainer/StructureContainer/StructureMeter"]
material = SubResource("ShaderMaterial_klw0t")
layout_mode = 2
texture = ExtResource("10_e82wu")

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

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

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

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

[node name="ViewportContainer" type="SubViewportContainer" parent="."]
material = SubResource("ShaderMaterial_ubp15")
layout_mode = 0
offset_right = 1900.0
offset_bottom = 768.0
stretch = true

[node name="Viewport" type="SubViewport" parent="ViewportContainer"]
handle_input_locally = false
size = Vector2i(1900, 768)
render_target_update_mode = 4

[node name="ArenaMap" parent="ViewportContainer/Viewport" instance=ExtResource("1_bvhtq")]

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