feat: 添加浮动文字,展示伤害和躲避
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
[gd_scene format=3 uid="uid://qkwyrg22h3gi"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://crydqt4saprcl" path="res://scenes/ui/floating_text/floating_text.gd" id="1_32222"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_dsam5"]
|
||||
font_size = 32
|
||||
outline_size = 10
|
||||
outline_color = Color(0.029506557, 0.029506557, 0.029506557, 1)
|
||||
|
||||
[node name="FloatingText" type="Node2D" unique_id=176496435]
|
||||
z_index = 10
|
||||
rotation = 0.13613568
|
||||
script = ExtResource("1_32222")
|
||||
|
||||
[node name="ValueLabel" type="Label" parent="." unique_id=481881550]
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -20.0
|
||||
offset_top = -19.333334
|
||||
offset_right = 20.0
|
||||
offset_bottom = 19.333334
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "10"
|
||||
label_settings = SubResource("LabelSettings_dsam5")
|
||||
horizontal_alignment = 1
|
||||
Reference in New Issue
Block a user