fix(rendering): complete character visual regression fixes

This commit is contained in:
shen
2026-09-08 13:26:42 +08:00
parent c3a6fb973e
commit cea79fe17c
15 changed files with 380 additions and 35 deletions
+6 -1
View File
@@ -339,7 +339,12 @@ func _swap(local_a: int, local_b: int) -> void:
func _build(parent: Node) -> void:
_root = Control.new()
_root.set_anchors_preset(Control.PRESET_CENTER_BOTTOM)
_root.position = Vector2(-SLOTS_PER_PAGE * 23, -54)
# Give the root a real extent. A zero-sized Control happened to work with
# some viewport sizes, but makes anchoring and hit testing fragile on Retina
# windows. The old HUD's empty row then made this look like missing skills.
_root.size = Vector2(400, 56)
_root.position = Vector2(-200, -62)
_root.z_index = 10
parent.add_child(_root)
var prev := Button.new()
prev.text = ""