From 1670b647382f2f1f4c14102edab2a09d41fc3c8c Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 23 May 2021 02:00:41 +0200 Subject: [PATCH] Fix nameplate size and position. --- game/player/NamePlate.gd | 2 +- game/ui/nameplates/NamePlate.tscn | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/game/player/NamePlate.gd b/game/player/NamePlate.gd index 799c20d..cf346c2 100644 --- a/game/player/NamePlate.gd +++ b/game/player/NamePlate.gd @@ -84,7 +84,7 @@ func _process(delta): var position : Vector2 = entity.get_body().position position.x -= (rect_size.x / 2.0) * rect_scale.x - position.y -= 60 + position.y -= 15 set_position(position) diff --git a/game/ui/nameplates/NamePlate.tscn b/game/ui/nameplates/NamePlate.tscn index 43518ef..f886708 100644 --- a/game/ui/nameplates/NamePlate.tscn +++ b/game/ui/nameplates/NamePlate.tscn @@ -18,7 +18,9 @@ __meta__ = { health_bar_path = NodePath("MarginContainer/TextureProgress") health_bar_label_path = NodePath("MarginContainer/CenterContainer/Label") 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="."] margin_right = 62.0