1
This commit is contained in:
@@ -135,7 +135,8 @@ namespace BITKit.UX
|
||||
try
|
||||
{
|
||||
CurrentOpacity = 0;
|
||||
TargetOpacity = 1;
|
||||
TargetOpacity = 1f;
|
||||
|
||||
document.rootVisualElement.SetActive(true);
|
||||
|
||||
OnEntry?.Invoke();
|
||||
@@ -190,7 +191,7 @@ namespace BITKit.UX
|
||||
public virtual void OnUpdate(float deltaTime)
|
||||
{
|
||||
var duration = 1f;
|
||||
if (TargetOpacity is 1)
|
||||
if (TargetOpacity is not 0)
|
||||
{
|
||||
if (entryDuration.Allow is false)
|
||||
{
|
||||
|
@@ -70,6 +70,11 @@ namespace BITKit.UX
|
||||
/// 历史面板
|
||||
/// </summary>
|
||||
internal static readonly Stack<IUXPanel> History = new();
|
||||
|
||||
/// <summary>
|
||||
/// 清空历史面板,通常用于关闭返回上一步
|
||||
/// </summary>
|
||||
public static void ClearHistory() => History.Clear();
|
||||
|
||||
public static void Register(IUXPanel panel) => RegistryQueue.Enqueue(panel);
|
||||
|
||||
|
Reference in New Issue
Block a user