Pawn labels: shift NameLabel above the 32×32 sprite
NameLabel was at y=-18 — sat right on top of the sprite head when the body grew from 12px disc to 32×32 character sprite. Bumped to y=-38 so the name floats above the sprite (which spans y=-24..+8). StateLabel at y=+10 unchanged — already just below sprite bottom. Also drop temporary atlas-idx audit log (debug-only, hash distribution confirmed Bram=004 / Cora=013 / Edda=001).
This commit is contained in:
parent
6b32617328
commit
4bb00a798b
2 changed files with 1 additions and 2 deletions
|
|
@ -258,7 +258,6 @@ func _mount_sprite() -> void:
|
|||
_sprite.show_behind_parent = true
|
||||
_sprite.play(&"idle_down")
|
||||
add_child(_sprite)
|
||||
Audit.log("pawn_sprite", "%s → atlas idx %d" % [pawn_name, (absi(pawn_name.hash()) % _PEASANT_COUNT) + 1])
|
||||
|
||||
|
||||
# ── public API ──────────────────────────────────────────────────────────────
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
script = ExtResource("1_pawn")
|
||||
|
||||
[node name="NameLabel" type="Label" parent="."]
|
||||
position = Vector2(-20, -18)
|
||||
position = Vector2(-20, -38)
|
||||
size = Vector2(40, 12)
|
||||
theme_override_font_sizes/font_size = 8
|
||||
horizontal_alignment = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue