1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 23:11:54 +08:00
Files
Dog-Lynx-And-HCN/components/UI/BossBar.tscn
T
fallingshrimp 8de262a615 feat(实体系统): 添加敌人等级系统并调整相关UI和游戏规则
为敌人实体添加等级属性,影响生命值和伤害
在状态栏和Boss血条中显示等级信息
调整游戏规则增加难度相关的属性成长系数
修改粒子效果角度和波次生成逻辑
2025-08-28 11:00:19 +08:00

82 lines
2.2 KiB
Plaintext

[gd_scene load_steps=5 format=3 uid="uid://ofpg5s3j7esv"]
[ext_resource type="Script" path="res://scripts/Statemachine/BossBar.gd" id="1_hkj6o"]
[ext_resource type="PackedScene" uid="uid://d1ulrvupa76ap" path="res://components/UI/ColorBar.tscn" id="1_uxey7"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_ar00p"]
content_margin_left = 10.0
[sub_resource type="LabelSettings" id="LabelSettings_esyuk"]
font_size = 12
font_color = Color(0, 0, 0, 1)
[node name="BossBar" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_hkj6o")
[node name="health" parent="." instance=ExtResource("1_uxey7")]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = -1
anchor_left = 0.2
anchor_top = 1.0
anchor_right = 0.8
anchor_bottom = 1.0
offset_top = -65.0
offset_right = 0.0
offset_bottom = -40.0
grow_horizontal = 2
grow_vertical = 0
currentValue = 0.0
[node name="panel" type="PanelContainer" parent="health"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxEmpty_ar00p")
[node name="label" type="HBoxContainer" parent="health/panel"]
layout_mode = 2
alignment = 1
[node name="name" type="Label" parent="health/panel/label"]
unique_name_in_owner = true
layout_mode = 2
text = "BossName"
label_settings = SubResource("LabelSettings_esyuk")
[node name="lv" type="Label" parent="health/panel/label"]
layout_mode = 2
text = "Lv."
label_settings = SubResource("LabelSettings_esyuk")
[node name="level" type="Label" parent="health/panel/label"]
unique_name_in_owner = true
layout_mode = 2
text = "100"
label_settings = SubResource("LabelSettings_esyuk")
[node name="sep" type="Label" parent="health/panel/label"]
layout_mode = 2
text = " - "
label_settings = SubResource("LabelSettings_esyuk")
[node name="value" type="Label" parent="health/panel/label"]
unique_name_in_owner = true
layout_mode = 2
text = "percent"
label_settings = SubResource("LabelSettings_esyuk")
[node name="percent" type="Label" parent="health/panel/label"]
layout_mode = 2
text = "%"
label_settings = SubResource("LabelSettings_esyuk")