Files
MovementTests/components/health/CHealthbar.tscn
Minimata ddf1bd019b
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 42s
Create tag and build when new code gets to main / Test (push) Successful in 6m13s
Create tag and build when new code gets to main / Export (push) Successful in 7m5s
better healthbars and one for the player as well
2026-01-26 18:09:29 +01:00

33 lines
988 B
Plaintext

[gd_scene load_steps=4 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"]
billboard = 1
double_sided = false
no_depth_test = true
texture = SubResource("ViewportTexture_jkj2g")
script = ExtResource("1_w5itk")
[node name="SubViewport" type="SubViewport" parent="."]
transparent_bg = true
size = Vector2i(520, 20)
[node name="Healthbar" parent="SubViewport" 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