SchildDerStaerke/packed-scenes/enemy_overlay.tscn

62 lines
1.6 KiB
Plaintext

[gd_scene load_steps=2 format=3 uid="uid://drqvds1bphrkc"]
[ext_resource type="Texture2D" uid="uid://dusuxbeon1rsm" path="res://resources/images/white1x1.png" id="1_sh5ks"]
[node name="SubViewportContainer" type="SubViewportContainer"]
offset_right = 40.0
offset_bottom = 40.0
[node name="EnemyOverlay" type="SubViewport" parent="."]
transparent_bg = true
handle_input_locally = false
size = Vector2i(300, 50)
render_target_update_mode = 4
[node name="Name" type="Label" parent="EnemyOverlay"]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -150.0
offset_right = 150.0
offset_bottom = 23.0
grow_horizontal = 2
size_flags_horizontal = 4
text = "Skeleton Warrior"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Health" type="TextureProgressBar" parent="EnemyOverlay"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -100.0
offset_top = -5.0
offset_right = 100.0
offset_bottom = 5.0
grow_horizontal = 2
grow_vertical = 2
value = 67.0
nine_patch_stretch = true
texture_under = ExtResource("1_sh5ks")
texture_progress = ExtResource("1_sh5ks")
tint_progress = Color(1, 0, 0, 1)
[node name="Stamina" type="TextureProgressBar" parent="EnemyOverlay"]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -100.0
offset_top = -10.0
offset_right = 100.0
grow_horizontal = 2
grow_vertical = 0
value = 67.0
nine_patch_stretch = true
texture_under = ExtResource("1_sh5ks")
texture_progress = ExtResource("1_sh5ks")
tint_progress = Color(0.203922, 0, 1, 1)