7-17-25 @ 3:55am
This commit is contained in:
89
Gameplay/actor_panel.tscn
Normal file
89
Gameplay/actor_panel.tscn
Normal file
@@ -0,0 +1,89 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://8kv00jc35dma"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c4ekvurl6q7jn" path="res://Gameplay/ActorPanel.cs" id="1_dg1wx"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_e1ofl"]
|
||||
bg_color = Color(1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mmnuv"]
|
||||
bg_color = Color(0.259294, 0.259294, 0.259294, 1)
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dg1wx"]
|
||||
bg_color = Color(0.6, 1, 0.6, 1)
|
||||
|
||||
[node name="ActorPanel" type="Panel"]
|
||||
anchors_preset = -1
|
||||
offset_left = -100.0
|
||||
offset_top = -150.0
|
||||
offset_right = 100.0
|
||||
offset_bottom = 150.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_e1ofl")
|
||||
script = ExtResource("1_dg1wx")
|
||||
|
||||
[node name="RichTextLabel" type="RichTextLabel" parent="."]
|
||||
layout_mode = 0
|
||||
offset_right = 207.0
|
||||
offset_bottom = 40.0
|
||||
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
||||
text = "Actor Name"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Image" type="Sprite2D" parent="."]
|
||||
position = Vector2(100, 75)
|
||||
|
||||
[node name="Health" type="Node2D" parent="."]
|
||||
position = Vector2(100, 150)
|
||||
|
||||
[node name="Name" type="RichTextLabel" parent="Health"]
|
||||
offset_left = -80.0
|
||||
offset_top = -26.0
|
||||
offset_bottom = -1.0
|
||||
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
||||
text = "Health"
|
||||
vertical_alignment = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Max" type="RichTextLabel" parent="Health"]
|
||||
offset_top = -26.0
|
||||
offset_right = 80.0
|
||||
offset_bottom = -1.0
|
||||
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
||||
text = "000"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Separator" type="RichTextLabel" parent="Health"]
|
||||
offset_top = -26.0
|
||||
offset_right = 50.0
|
||||
offset_bottom = -1.0
|
||||
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
||||
text = "/
|
||||
"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Value" type="RichTextLabel" parent="Health"]
|
||||
offset_top = -26.0
|
||||
offset_right = 40.0
|
||||
offset_bottom = -1.0
|
||||
theme_override_colors/default_color = Color(0, 0, 0, 1)
|
||||
text = "000"
|
||||
horizontal_alignment = 2
|
||||
vertical_alignment = 1
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="Bar" type="ProgressBar" parent="Health"]
|
||||
offset_left = -80.0
|
||||
offset_top = -3.0
|
||||
offset_right = 81.0
|
||||
offset_bottom = 4.0
|
||||
theme_override_styles/background = SubResource("StyleBoxFlat_mmnuv")
|
||||
theme_override_styles/fill = SubResource("StyleBoxFlat_dg1wx")
|
||||
step = 1.0
|
||||
show_percentage = false
|
||||
metadata/_edit_use_anchors_ = true
|
||||
Reference in New Issue
Block a user