33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
[gd_scene format=3 uid="uid://bwx2um43k0ou4"]
|
|
|
|
[ext_resource type="Script" uid="uid://chfb3cjo6exga" path="res://components/health/CHealthbar.cs" id="1_w5itk"]
|
|
[ext_resource type="PackedScene" uid="uid://cyw8p0p6a78tl" path="res://scenes/ui/healthbar.tscn" id="2_w5itk"]
|
|
|
|
[sub_resource type="ViewportTexture" id="ViewportTexture_jkj2g"]
|
|
viewport_path = NodePath("SubViewport")
|
|
|
|
[node name="CHealthBar" type="Sprite3D" unique_id=1527974573]
|
|
billboard = 1
|
|
double_sided = false
|
|
no_depth_test = true
|
|
texture = SubResource("ViewportTexture_jkj2g")
|
|
script = ExtResource("1_w5itk")
|
|
|
|
[node name="SubViewport" type="SubViewport" parent="." unique_id=791051331]
|
|
transparent_bg = true
|
|
size = Vector2i(520, 20)
|
|
|
|
[node name="Healthbar" parent="SubViewport" unique_id=739464079 instance=ExtResource("2_w5itk")]
|
|
unique_name_in_owner = true
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -120.0
|
|
offset_top = -4.0
|
|
offset_right = 120.0
|
|
offset_bottom = 4.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|