fix: 装备属性面板避让逻辑 + 多项功能更新
- item_tooltip_view.gd: 新增 avoid_rect 属性,tooltip 与装备窗口重叠时自动推到左侧 - inventory_ui.gd: 悬停装备时传入窗口矩形作为避让区域 - 包含其他累积的功能开发和测试文件
This commit is contained in:
@@ -182,5 +182,14 @@ func _run() -> void:
|
||||
var moved := Vector3(pc.player.position.x, 0, pc.player.position.z)
|
||||
_ck(moved.length() > 0.05 and moved.normalized().dot(c[2]) > 0.95,
|
||||
"key %s moves camera-relative (want %s, moved %s)" % [c[1], c[2], moved])
|
||||
|
||||
# 9) __OnClickSmart fallback:点击到既不是实体、掉落物也不是地面的空白处
|
||||
# 必须 NEW_Stop,不能让上一次点地目标继续驱动角色。
|
||||
pc._goto(Vector3(8, 0, 0))
|
||||
_ck(pc.is_going(), "click-move is active before empty-space click")
|
||||
pc.world = null # no ground hit -> __OnClickSmart's NEW_Stop branch
|
||||
pc._on_click(Vector2.ZERO)
|
||||
_ck(not pc.is_going(), "empty-space click stops the previous click-move")
|
||||
|
||||
pc.camera = null
|
||||
cam.free()
|
||||
|
||||
Reference in New Issue
Block a user