This commit is contained in:
CortexCore
2025-02-24 23:02:43 +08:00
parent 41715e4413
commit 8261a458e2
105 changed files with 2934 additions and 696 deletions

View File

@@ -30,6 +30,7 @@ namespace BITKit.UX
/// 该面板是否启用玩家输入
/// </summary>
bool AllowInput { get; }
object Root { get; }
/// <summary>
/// 事件回调,当面板被打开时触发
/// </summary>
@@ -43,6 +44,8 @@ namespace BITKit.UX
event Func<UniTask> OnExitAsync;
event Action OnExitCompleted;
public event Action OnInitiated;
public event Func<UniTask> OnInitiatedAsync;
void OnTick(float deltaTime);
}
}

View File

@@ -1,5 +1,6 @@
using System;
using Cysharp.Threading.Tasks;
using Unity.Mathematics;
namespace BITKit.UX
{
@@ -52,6 +53,13 @@ namespace BITKit.UX
/// 面板改变回调
/// </summary>
public event Action<IUXPanel, IUXPanel> OnPanelChanged;
/// <summary>
/// 获取可交互的元素
/// </summary>
/// <param name="position"></param>
/// <param name="obj"></param>
/// <returns></returns>
public bool TryPick(float2 position, out object obj);
}
}