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

[ext_resource type="Texture2D" uid="uid://d11molrkdjjh5" path="res://_graphics/bar_background.png" id="1_m6e0p"]
[ext_resource type="Script" uid="uid://b544c65halgk4" path="res://scenes/ui.gd" id="1_nltto"]
[ext_resource type="Texture2D" uid="uid://bsl3pxvxiuoqg" path="res://_graphics/bar_foreground.png" id="2_27fn8"]
[ext_resource type="Shader" uid="uid://dfywtah53il1m" path="res://shaders/player_hit.gdshader" id="2_ibotj"]
[ext_resource type="PackedScene" uid="uid://5qkcf1cpre32" path="res://scenes/score_counter.tscn" id="4_ibotj"]

[sub_resource type="ShaderMaterial" id="ShaderMaterial_n5ude"]
shader = ExtResource("2_ibotj")
shader_parameter/toggle = 0.0

[node name="UI" type="MarginContainer" unique_id=722926975]
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 20.0
grow_horizontal = 2
theme_override_constants/margin_left = 10
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_bottom = 10
script = ExtResource("1_nltto")

[node name="HBoxContainer" type="HBoxContainer" parent="." unique_id=2065468078]
layout_mode = 2

[node name="ShieldBar" type="TextureProgressBar" parent="HBoxContainer" unique_id=378017393]
material = SubResource("ShaderMaterial_n5ude")
custom_minimum_size = Vector2(80, 16)
layout_mode = 2
step = 0.0
nine_patch_stretch = true
stretch_margin_left = 3
stretch_margin_top = 3
stretch_margin_right = 3
stretch_margin_bottom = 3
texture_under = ExtResource("1_m6e0p")
texture_progress = ExtResource("2_27fn8")

[node name="ScoreCounter" parent="HBoxContainer" unique_id=1107960341 instance=ExtResource("4_ibotj")]
visible = false
layout_mode = 2

[connection signal="value_changed" from="HBoxContainer/ShieldBar" to="." method="_on_shield_bar_value_changed"]
