fix: 装备属性面板避让逻辑 + 多项功能更新
- item_tooltip_view.gd: 新增 avoid_rect 属性,tooltip 与装备窗口重叠时自动推到左侧 - inventory_ui.gd: 悬停装备时传入窗口矩形作为避让区域 - 包含其他累积的功能开发和测试文件
This commit is contained in:
@@ -121,6 +121,7 @@ func _test_char_status_quest_page() -> void:
|
||||
"counter_value": 5 if i == 0 else 0,
|
||||
"clock_name": "限时" if i == 1 else "",
|
||||
"clock_value": 125 if i == 1 else 0,
|
||||
"clock_start_ms": Time.get_ticks_msec() - 121000 if i == 1 else 0,
|
||||
})
|
||||
|
||||
var cs: Node = CharStatusUI.new()
|
||||
@@ -142,7 +143,8 @@ func _test_char_status_quest_page() -> void:
|
||||
_assert(cnt0 != null and cnt0.text == "击杀数 : 5", "Quest_LastCount_00 shows counter '击杀数 : 5'")
|
||||
|
||||
var time1 = cs._node("Quest_LastTime_01")
|
||||
_assert(time1 != null and time1.text == "限时 02:05", "Quest_LastTime_01 formats 125s as '限时 02:05'")
|
||||
_assert(time1 != null and time1.text == "限时 00:04",
|
||||
"Quest_LastTime_01 derives remaining time from the captured quest start (got %s)" % (time1.text if time1 else "<missing>"))
|
||||
|
||||
# Click on Quest_Name_00: should send script_button(-2147483648 + 100)
|
||||
var ev := InputEventMouseButton.new()
|
||||
|
||||
Reference in New Issue
Block a user