Fix nameplate size and position.

This commit is contained in:
Relintai 2021-05-23 02:00:41 +02:00
parent e259a65281
commit 1670b64738
2 changed files with 4 additions and 2 deletions

View File

@ -84,7 +84,7 @@ func _process(delta):
var position : Vector2 = entity.get_body().position var position : Vector2 = entity.get_body().position
position.x -= (rect_size.x / 2.0) * rect_scale.x position.x -= (rect_size.x / 2.0) * rect_scale.x
position.y -= 60 position.y -= 15
set_position(position) set_position(position)

View File

@ -18,7 +18,9 @@ __meta__ = {
health_bar_path = NodePath("MarginContainer/TextureProgress") health_bar_path = NodePath("MarginContainer/TextureProgress")
health_bar_label_path = NodePath("MarginContainer/CenterContainer/Label") health_bar_label_path = NodePath("MarginContainer/CenterContainer/Label")
normal_color = Color( 0.74902, 0.74902, 0.74902, 1 ) normal_color = Color( 0.74902, 0.74902, 0.74902, 1 )
mouseover_scale = Vector2( 0.75, 0.75 ) normal_scale = Vector2( 0.35, 0.35 )
mouseover_scale = Vector2( 0.35, 0.35 )
targeted_scale = Vector2( 0.45, 0.45 )
[node name="Name" type="Label" parent="."] [node name="Name" type="Label" parent="."]
margin_right = 62.0 margin_right = 62.0