mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-24 04:06:48 +08:00
- 添加UI实例管理策略枚举(AlwaysCreate、Reuse、Pooled) - 在GodotUiFactory中实现缓存池和实例回收机制 - 扩展IUiFactory接口支持预加载、回收和缓存管理功能 - 更新UiRouterBase支持实例策略参数传递 - 重构Pop策略将Hide重命名为Cache以明确语义 - 移除项目文件中的冗余文件夹引用 - 添加日志记录便于调试和监控实例状态 - 实现批量预加载和全量缓存清理功能 - 优化页面替换逻辑支持实例复用和池化管理
18 lines
417 B
C#
18 lines
417 B
C#
namespace GFramework.Game.Abstractions.enums;
|
||
|
||
/// <summary>
|
||
/// UI页面过渡策略枚举
|
||
/// 定义了UI页面在出栈时的不同处理方式
|
||
/// </summary>
|
||
public enum UiTransitionPolicy
|
||
{
|
||
/// <summary>
|
||
/// 独占显示(下层页面 Pause + Hide)
|
||
/// </summary>
|
||
Exclusive,
|
||
|
||
/// <summary>
|
||
/// 覆盖显示(下层页面仅 Pause,不隐藏)
|
||
/// </summary>
|
||
Overlay
|
||
} |