diff --git a/GFramework.Game.Abstractions/ui/IUiPageBehavior.cs b/GFramework.Game.Abstractions/ui/IUiPageBehavior.cs index 6309438..ec5ea43 100644 --- a/GFramework.Game.Abstractions/ui/IUiPageBehavior.cs +++ b/GFramework.Game.Abstractions/ui/IUiPageBehavior.cs @@ -53,4 +53,20 @@ public interface IUiPageBehavior /// 页面重新显示时调用的方法 /// void OnShow(); + + /// + /// 获取页面是否为模态页面 + /// + bool IsModal { get; } + + /// + /// 获取页面是否阻断下层交互 + /// + bool BlocksInput { get; } + + /// + /// 获取页面是否需要蒙版 + /// + bool RequiresMask { get; } + } \ No newline at end of file diff --git a/GFramework.Godot/ui/CanvasItemUiPageBehavior.cs b/GFramework.Godot/ui/CanvasItemUiPageBehavior.cs index 4bd7673..9cf65aa 100644 --- a/GFramework.Godot/ui/CanvasItemUiPageBehavior.cs +++ b/GFramework.Godot/ui/CanvasItemUiPageBehavior.cs @@ -94,4 +94,20 @@ public class CanvasItemUiPageBehavior(T owner, string key) : IUiPageBehavior owner.Show(); OnResume(); } + + /// + /// 获取或设置页面是否为模态对话框 + /// + public bool IsModal { get; set; } + + /// + /// 获取或设置页面是否阻止输入 + /// + public bool BlocksInput { get; set; } = true; + + /// + /// 获取或设置页面是否需要遮罩层 + /// + public bool RequiresMask { get; set; } + } \ No newline at end of file