mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-19 06:31:54 +08:00
修改内容: 1. LayerUI.ts: 添加 hasCache(prefabPath: string) 方法 - 检查 ui_cache 中是否存在指定预制件路径的界面 2. LayerManager.ts: 添加 isCached(uiid: Uiid) 方法 - 对外提供查询界面是否在缓存中的 API - 与 has() 方法区分:has() 检查显示中,isCached() 检查缓存中 使用示例: // 检查界面是否正在显示 oops.gui.has(UIID.Loading); // false(已从舞台移除) // 检查界面是否在缓存中(destroy: false 时) oops.gui.hasCache(UIID.Loading); // true(在缓存中) 影响范围: - 仅新增方法,不影响现有功能 - 向后兼容