GeWuYou c9f01f5877 feat(ui): 添加UI层级管理和Godot平台实现
- 在IUiRoot接口中添加Z-order控制和页面层级管理功能
- 实现Godot平台的UiRoot,支持UI页面的添加、移除和层级排序
- 添加UiLayer枚举定义不同UI层级(Page、Overlay、Modal、Toast、Topmost)
- 在IUiRouter中扩展层级管理方法,支持指定层级显示UI
- 实现UiRouterBase中的层级管理逻辑,包括显示、隐藏、清空等操作
- 添加对GodotSharp包的引用以支持Godot平台功能
2026-01-20 09:14:37 +08:00

34 lines
772 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace GFramework.Game.Abstractions.enums;
/// <summary>
/// UI层级枚举定义UI界面的显示层级
/// 用于管理不同类型的UI在屏幕上的显示顺序
/// </summary>
public enum UiLayer
{
/// <summary>
/// 页面层使用栈管理UI的切换
/// </summary>
Page = 0,
/// <summary>
/// 浮层,用于覆盖层、对话框等
/// </summary>
Overlay = 10,
/// <summary>
/// 模态层,会阻挡下层交互,带有遮罩效果
/// </summary>
Modal = 20,
/// <summary>
/// 提示层用于轻量提示如toast消息、loading指示器等
/// </summary>
Toast = 30,
/// <summary>
/// 顶层,用于系统级弹窗、全屏加载等
/// </summary>
Topmost = 40
}