mirror of
https://github.com/Relintai/broken_seals_2d.git
synced 2024-11-11 20:35:10 +01:00
Fixed nameplate positions.
This commit is contained in:
parent
0a33c6073b
commit
b21e329e45
@ -81,7 +81,8 @@ func _process(delta):
|
||||
if (get_scale() - target_scale).length() < 0.04:
|
||||
interpolating = false
|
||||
|
||||
var position : Vector2 = entity.get_body().position
|
||||
#var position : Vector2 = entity.get_body().position
|
||||
var position : Vector2 = Vector2()
|
||||
|
||||
position.x -= (rect_size.x / 2.0) * rect_scale.x
|
||||
position.y -= 60
|
||||
|
@ -12,9 +12,6 @@ mouse_filter = 2
|
||||
theme = ExtResource( 1 )
|
||||
custom_constants/separation = 0
|
||||
script = ExtResource( 3 )
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
health_bar_path = NodePath("MarginContainer/TextureProgress")
|
||||
health_bar_label_path = NodePath("MarginContainer/CenterContainer/Label")
|
||||
normal_color = Color( 0.74902, 0.74902, 0.74902, 1 )
|
||||
@ -22,14 +19,14 @@ mouseover_scale = Vector2( 0.75, 0.75 )
|
||||
|
||||
[node name="Name" type="Label" parent="."]
|
||||
margin_right = 62.0
|
||||
margin_bottom = 15.0
|
||||
margin_bottom = 14.0
|
||||
custom_constants/line_spacing = 0
|
||||
text = "Asda"
|
||||
align = 1
|
||||
valign = 1
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="."]
|
||||
margin_top = 15.0
|
||||
margin_top = 14.0
|
||||
margin_right = 62.0
|
||||
margin_bottom = 17.0
|
||||
size_flags_horizontal = 15
|
||||
@ -38,7 +35,7 @@ size_flags_stretch_ratio = 2.3
|
||||
|
||||
[node name="TextureProgress" type="TextureProgress" parent="MarginContainer"]
|
||||
margin_right = 62.0
|
||||
margin_bottom = 2.0
|
||||
margin_bottom = 3.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
value = 100.0
|
||||
@ -55,14 +52,14 @@ stretch_margin_bottom = 1
|
||||
[node name="CenterContainer" type="CenterContainer" parent="MarginContainer"]
|
||||
visible = false
|
||||
margin_right = 62.0
|
||||
margin_bottom = 2.0
|
||||
margin_bottom = 3.0
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Label" type="Label" parent="MarginContainer/CenterContainer"]
|
||||
visible = false
|
||||
margin_left = 22.0
|
||||
margin_top = -7.0
|
||||
margin_right = 40.0
|
||||
margin_left = 17.0
|
||||
margin_top = -6.0
|
||||
margin_right = 45.0
|
||||
margin_bottom = 8.0
|
||||
text = "50%"
|
||||
|
Loading…
Reference in New Issue
Block a user