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
+18
View File
@@ -552,6 +552,24 @@ func stop_all_sound_3d() -> void:
_character_history.clear()
_ambience_states.clear()
# ClientVS22 CSoundManager::Destroy equivalent. AudioStream resources are
# cached independently of the player nodes, so freeing the scene alone can
# leave MP3 streams/playbacks alive until ObjectDB shutdown.
func shutdown() -> void:
stop_all_sound_3d()
for pl in _bgm:
if pl and is_instance_valid(pl):
pl.stop()
pl.stream = null
for pl in _ui_pool:
if pl and is_instance_valid(pl):
pl.stop()
pl.stream = null
_cache.clear()
_mss_cache.clear()
_queued_bgm = ""
_bgm_name = ""
func fade_limit_out_music(name: String, limit_volume: float, speed := FADE_SPEED) -> void:
if name != _bgm_name:
return