This commit is contained in:
CortexCore
2024-07-07 14:27:34 +08:00
parent e6bb3dc5fa
commit c0ded1f99b
4 changed files with 40 additions and 12 deletions

View File

@@ -490,7 +490,7 @@ namespace BITKit.Net
await BITApp.SwitchToMainThread();
if (value is Exception e)
{
throw e;
throw new InGameException(e.Message,e);
}
if (UniTask.CompletedTask is T t)
{

View File

@@ -14,6 +14,10 @@ namespace BITKit.UX
/// <para>⭐基本UI导航回调</para>
public interface IUXPanel:IEntryElement,IUpdate
{
/// <summary>
/// 是否为窗口,用于覆盖其他面板
/// </summary>
bool IsWindow { get; }
/// <summary>
/// 该面板是否具有动画
/// </summary>
@@ -47,7 +51,8 @@ namespace BITKit.UX
{
protected abstract IUXPanel service { get; }
private IUXPanel _iuxPanelImplementation => service;
public bool IsAnimate => _iuxPanelImplementation.IsAnimate;
public bool IsWindow=>_iuxPanelImplementation.IsWindow;
public bool IsAnimate => _iuxPanelImplementation.IsAnimate;
public bool IsValid => _iuxPanelImplementation.IsValid;