44 lines
1.7 KiB
Text
44 lines
1.7 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://s6wf3egdqtmh"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://d11molrkdjjh5" path="res://bar_background.png" id="1_m6e0p"]
|
|
[ext_resource type="Script" uid="uid://b544c65halgk4" path="res://ui.gd" id="1_nltto"]
|
|
[ext_resource type="Texture2D" uid="uid://bsl3pxvxiuoqg" path="res://bar_foreground.png" id="2_27fn8"]
|
|
[ext_resource type="Shader" uid="uid://dfywtah53il1m" path="res://player_hit.gdshader" id="2_ibotj"]
|
|
[ext_resource type="PackedScene" uid="uid://5qkcf1cpre32" path="res://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"]
|
|
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="."]
|
|
layout_mode = 2
|
|
|
|
[node name="ShieldBar" type="TextureProgressBar" parent="HBoxContainer"]
|
|
material = SubResource("ShaderMaterial_n5ude")
|
|
custom_minimum_size = Vector2(80, 16)
|
|
layout_mode = 2
|
|
step = 0.0
|
|
value = 100.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" instance=ExtResource("4_ibotj")]
|
|
layout_mode = 2
|
|
|
|
[connection signal="value_changed" from="HBoxContainer/ShieldBar" to="." method="_on_shield_bar_value_changed"]
|