fix: 装备属性面板避让逻辑 + 多项功能更新

- item_tooltip_view.gd: 新增 avoid_rect 属性,tooltip 与装备窗口重叠时自动推到左侧
- inventory_ui.gd: 悬停装备时传入窗口矩形作为避让区域
- 包含其他累积的功能开发和测试文件
This commit is contained in:
shen
2026-09-21 16:38:59 -07:00
parent 1522a8a1a1
commit c93894313a
5498 changed files with 4558004 additions and 1442 deletions
+9
View File
@@ -46,6 +46,15 @@ func setup(m2client: Node, skill_table: RefCounted, ui_manager: CanvasLayer) ->
ui = ui_manager
if client.has_signal("skills_changed"):
client.skills_changed.connect(refresh)
if client.has_signal("point_changed"):
client.point_changed.connect(_on_point_changed)
func _on_point_changed(_vid: int, point_type: int, _value: int, _amount: int) -> void:
# 40250 RecvPointChange refreshes the skill window when level/four-stat,
# active/support/horse points change. Keep the window's rows and plus
# buttons live even when no GC_SKILL_LEVEL packet follows the point update.
if point_type in [1, 12, 13, 14, 15, 27, 28, 112, 113] and is_open():
refresh()
func set_job(j: String) -> void:
job = j