[gd_scene format=3 uid="uid://bq8ig7s8gxia4"]

[ext_resource type="Theme" uid="uid://d3iyu7ukwsn1p" path="res://ui/default_theme.tres" id="1_1evs6"]
[ext_resource type="PackedScene" uid="uid://bvp37ljy8eaba" path="res://ui/texture_container.tscn" id="3_nsgok"]
[ext_resource type="Script" uid="uid://da2hsusvv3rxg" path="res://scripts/debug_ui.gd" id="5_h6use"]
[ext_resource type="Script" uid="uid://bimyryljv4hs2" path="res://ui/dialogue.gd" id="6_kes38"]
[ext_resource type="Texture2D" uid="uid://bng412si6gw5w" path="res://ui/healt_bar.png" id="7_np4cb"]
[ext_resource type="Script" uid="uid://cj6pb1828dcfr" path="res://scripts/health_bar.gd" id="8_8fqmc"]
[ext_resource type="PackedScene" uid="uid://c6f7s7bsitw13" path="res://ui/settings_menu.tscn" id="8_14s75"]
[ext_resource type="Script" uid="uid://xax2m3yjnmxq" path="res://ui/heart.gd" id="8_vi4d2"]
[ext_resource type="Texture2D" uid="uid://efh5dlhsxsnq" path="res://ui/bar_under.png" id="9_fl7ai"]
[ext_resource type="Texture2D" uid="uid://bdi1ga46vj8lt" path="res://ui/bar_progress.png" id="10_iwd8l"]
[ext_resource type="Script" uid="uid://cqrqqn2p0h0kb" path="res://scripts/mask_bar.gd" id="11_01h74"]
[ext_resource type="Script" uid="uid://dgxs6odxyi6s4" path="res://scripts/dmg_flash.gd" id="12_vi4d2"]
[ext_resource type="Shader" uid="uid://djbssih1prixl" path="res://shaders/post_processing.gdshader" id="13_1evs6"]

[sub_resource type="AtlasTexture" id="AtlasTexture_vi4d2"]
atlas = ExtResource("7_np4cb")
region = Rect2(0, 96, 0, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_1evs6"]
atlas = ExtResource("7_np4cb")
region = Rect2(0, 96, 0, 32)

[sub_resource type="AtlasTexture" id="AtlasTexture_umou3"]
atlas = ExtResource("7_np4cb")
region = Rect2(0, 96, 0, 32)

[sub_resource type="ShaderMaterial" id="ShaderMaterial_umou3"]
shader = ExtResource("13_1evs6")
shader_parameter/brightness = 0.950000045125
shader_parameter/contrast = 1.0
shader_parameter/saturation = 2.0

[node name="UILayer" type="CanvasLayer" unique_id=1355059062]
scale = Vector2(4, 4)
transform = Transform2D(4, 0, 0, 4, 0, 0)

[node name="UI" type="Control" parent="." unique_id=1664369149]
process_mode = 3
layout_mode = 3
anchors_preset = 0
offset_right = 640.0
offset_bottom = 360.0
size_flags_horizontal = 0
mouse_filter = 2
theme = ExtResource("1_1evs6")

[node name="Debug" type="Control" parent="UI" unique_id=340031739]
visible = false
layout_mode = 1
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
mouse_filter = 2
script = ExtResource("5_h6use")

[node name="Label" type="Label" parent="UI/Debug" unique_id=2053540183]
layout_mode = 1
offset_right = 28.0
offset_bottom = 179.0
text = "Dbue
g
g
g
g
g
g
g
g
g
g
g
"

[node name="PlayerStat" type="HBoxContainer" parent="UI" unique_id=1196550807]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -83.5
offset_top = -63.0
offset_right = 83.5
offset_bottom = -23.0
grow_horizontal = 2
grow_vertical = 0
mouse_filter = 2

[node name="TextureProgressBar" type="TextureProgressBar" parent="UI/PlayerStat" unique_id=1768656786]
layout_mode = 2
size_flags_vertical = 4
max_value = 1.0
step = 0.01
value = 1.0
texture_under = ExtResource("9_fl7ai")
texture_progress = ExtResource("10_iwd8l")
script = ExtResource("11_01h74")

[node name="HBoxContainer" type="HBoxContainer" parent="UI/PlayerStat" unique_id=2071372228]
layout_mode = 2
script = ExtResource("8_8fqmc")

[node name="Heart" type="TextureRect" parent="UI/PlayerStat/HBoxContainer" unique_id=1431196763]
layout_mode = 2
size_flags_vertical = 4
texture = SubResource("AtlasTexture_vi4d2")
script = ExtResource("8_vi4d2")

[node name="Heart2" type="TextureRect" parent="UI/PlayerStat/HBoxContainer" unique_id=415318443]
layout_mode = 2
size_flags_vertical = 4
texture = SubResource("AtlasTexture_1evs6")
script = ExtResource("8_vi4d2")

[node name="Heart3" type="TextureRect" parent="UI/PlayerStat/HBoxContainer" unique_id=1779405800]
layout_mode = 2
size_flags_vertical = 4
texture = SubResource("AtlasTexture_umou3")
script = ExtResource("8_vi4d2")

[node name="SettingsMenu" parent="UI" unique_id=478838648 instance=ExtResource("8_14s75")]
layout_mode = 1

[node name="DialogueBox" parent="UI" unique_id=368242412 node_paths=PackedStringArray("dialogue_label") instance=ExtResource("3_nsgok")]
visible = false
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -172.61873
offset_top = -103.5
offset_right = 172.61871
offset_bottom = -32.5
grow_horizontal = 2
grow_vertical = 0
script = ExtResource("6_kes38")
dialogue_label = NodePath("MarginContainer/DialogueLabel")

[node name="MarginContainer" type="MarginContainer" parent="UI/DialogueBox" unique_id=750374639]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="DialogueLabel" type="RichTextLabel" parent="UI/DialogueBox/MarginContainer" unique_id=1246572478]
layout_mode = 2
theme = ExtResource("1_1evs6")
text = "This is example dialogue!!"

[node name="PostProcessing" type="Control" parent="UI" unique_id=935025285]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2

[node name="DmgFlash" type="ColorRect" parent="UI/PostProcessing" unique_id=1301839736]
visible = false
z_index = 10
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.8862745, 0.49019608, 0.47058824, 0)
script = ExtResource("12_vi4d2")

[node name="ColorCorrection" type="ColorRect" parent="UI/PostProcessing" unique_id=313386066]
z_index = 10
material = SubResource("ShaderMaterial_umou3")
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
