2025-09-06 10:46:34 +08:00
|
|
|
[gd_scene load_steps=8 format=3 uid="uid://dcjqjqere8ets"]
|
2025-08-26 09:24:09 +08:00
|
|
|
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://d1ulrvupa76ap" path="res://components/UI/ColorBar.tscn" id="1_0ngbn"]
|
|
|
|
|
[ext_resource type="Script" path="res://scripts/Statemachine/EntityStateBar.gd" id="1_ovbjr"]
|
|
|
|
|
|
2025-09-06 10:46:34 +08:00
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_w56p2"]
|
|
|
|
|
bg_color = Color(0, 0, 0, 0.5)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2sar3"]
|
|
|
|
|
bg_color = Color(1, 0, 0, 0.5)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_i0t67"]
|
|
|
|
|
bg_color = Color(0, 1, 0, 0.5)
|
|
|
|
|
|
|
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_jxamg"]
|
|
|
|
|
bg_color = Color(1, 1, 1, 1)
|
|
|
|
|
|
2025-08-28 11:00:19 +08:00
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_ih2pl"]
|
|
|
|
|
font_size = 13
|
|
|
|
|
|
2025-08-26 09:24:09 +08:00
|
|
|
[node name="EntityStateBar" type="Node2D"]
|
|
|
|
|
script = ExtResource("1_ovbjr")
|
|
|
|
|
|
|
|
|
|
[node name="health" parent="." instance=ExtResource("1_0ngbn")]
|
|
|
|
|
unique_name_in_owner = true
|
|
|
|
|
offset_left = -50.0
|
|
|
|
|
offset_top = -5.0
|
|
|
|
|
offset_right = 50.0
|
|
|
|
|
offset_bottom = 5.0
|
2025-09-06 10:46:34 +08:00
|
|
|
backBox = SubResource("StyleBoxFlat_w56p2")
|
|
|
|
|
middleBox1 = SubResource("StyleBoxFlat_2sar3")
|
|
|
|
|
middleBox2 = SubResource("StyleBoxFlat_i0t67")
|
|
|
|
|
frontBox = SubResource("StyleBoxFlat_jxamg")
|
2025-08-28 11:00:19 +08:00
|
|
|
|
|
|
|
|
[node name="levelLabel" type="HBoxContainer" parent="health"]
|
2025-08-28 12:58:00 +08:00
|
|
|
unique_name_in_owner = true
|
2025-08-28 11:00:19 +08:00
|
|
|
layout_mode = 1
|
|
|
|
|
anchors_preset = -1
|
|
|
|
|
anchor_left = 0.5
|
|
|
|
|
anchor_top = -2.0
|
|
|
|
|
anchor_right = 0.5
|
|
|
|
|
anchor_bottom = -2.0
|
|
|
|
|
offset_left = -25.0
|
|
|
|
|
offset_right = 26.0
|
|
|
|
|
offset_bottom = 19.0
|
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
alignment = 1
|
|
|
|
|
|
|
|
|
|
[node name="tip" type="Label" parent="health/levelLabel"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_vertical = 8
|
|
|
|
|
text = "Lv."
|
|
|
|
|
label_settings = SubResource("LabelSettings_ih2pl")
|
|
|
|
|
|
|
|
|
|
[node name="level" type="Label" parent="health/levelLabel"]
|
|
|
|
|
unique_name_in_owner = true
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "100"
|