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
+3 -17
View File
@@ -46,7 +46,9 @@ func setup(world: Node, player: Node3D) -> void:
_map_h_m = float(rep["map_size_y"]) * 256.0
_build_minimap(int(rep["map_size_x"]), int(rep["map_size_y"]))
_build_status()
_build_hotbar()
# 技能快捷栏由 ui/quickbar.gd 管理:它恢复服务端的 36 个槽位、显示
# 技能图标并处理冷却。这里以前画的静态空槽会和它重叠,让实际技能看起来
# 没有加载,因此 HUD 不再创建第二条快捷栏。
_build_inventory()
_build_dungeon_compass()
@@ -368,22 +370,6 @@ func _build_target_panel() -> void:
_target_fill.size = Vector2(180, 12)
slot.add_child(_target_fill)
func _build_hotbar() -> void:
var row := HBoxContainer.new()
row.set_anchors_preset(Control.PRESET_CENTER_BOTTOM)
row.position = Vector2(-8 * 23, -56)
row.add_theme_constant_override("separation", 4)
add_child(row)
for i in 8:
var slot := _nine("thinboard", 16, 16)
slot.custom_minimum_size = Vector2(42, 42)
var n := Label.new()
n.text = str(i + 1)
n.position = Vector2(4, 2)
n.add_theme_font_size_override("font_size", 11)
slot.add_child(n)
row.add_child(slot)
func _build_inventory() -> void:
_inv = _nine("board", 32, 128)
_inv.set_anchors_preset(Control.PRESET_CENTER_RIGHT)