GeWuYou 43eacc1e4a refactor(ui): 移除UI根接口中的Z序管理方法并优化文档注释
- 从IUiRoot接口中移除SetZOrder和GetVisiblePages方法
- 删除GodotUiRoot类的完整实现文件
- 为ModalLayerUiPageBehavior类添加详细的XML文档注释
- 为TopmostLayerUiPageBehavior类添加详细的XML文档注释
- 优化模态层和顶层UI行为类的属性文档说明
- [release ci]
2026-02-07 21:51:34 +08:00

29 lines
934 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.

using GFramework.Game.Abstractions.enums;
namespace GFramework.Game.Abstractions.ui;
/// <summary>
/// UI根节点接口定义了UI页面容器的基本操作
/// </summary>
public interface IUiRoot
{
/// <summary>
/// 向UI根节点添加子页面
/// </summary>
/// <param name="child">要添加的UI页面子节点</param>
void AddUiPage(IUiPageBehavior child);
/// <summary>
/// 向UI根节点添加子页面到指定层级
/// </summary>
/// <param name="child">要添加的UI页面子节点</param>
/// <param name="layer">层级</param>
/// <param name="orderInLayer">层级内排序</param>
void AddUiPage(IUiPageBehavior child, UiLayer layer, int orderInLayer = 0);
/// <summary>
/// 从UI根节点移除子页面
/// </summary>
/// <param name="child">要移除的UI页面子节点</param>
void RemoveUiPage(IUiPageBehavior child);
}