1
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using System;
|
||||
|
||||
namespace BITKit.UX
|
||||
{
|
||||
/// <summary>
|
||||
@@ -31,9 +33,18 @@ namespace BITKit.UX
|
||||
bool AllowInput { get; }
|
||||
void Entry();
|
||||
void Exit();
|
||||
/// <summary>
|
||||
/// 事件回调,当面板被打开时触发
|
||||
/// </summary>
|
||||
event Action OnEntry;
|
||||
/// <summary>
|
||||
/// 事件回调,当面板被关闭时触发
|
||||
/// </summary>
|
||||
event Action OnExit;
|
||||
}
|
||||
public abstract class UXPanelImplement:IUXPanel
|
||||
{
|
||||
private IUXPanel _iuxPanelImplementation1;
|
||||
protected abstract IUXPanel _iuxPanelImplementation { get; }
|
||||
public bool IsAnimate => _iuxPanelImplementation.IsAnimate;
|
||||
|
||||
@@ -54,5 +65,17 @@ namespace BITKit.UX
|
||||
{
|
||||
_iuxPanelImplementation.Exit();
|
||||
}
|
||||
|
||||
public event Action OnEntry
|
||||
{
|
||||
add => _iuxPanelImplementation1.OnEntry += value;
|
||||
remove => _iuxPanelImplementation1.OnEntry -= value;
|
||||
}
|
||||
|
||||
public event Action OnExit
|
||||
{
|
||||
add => _iuxPanelImplementation1.OnExit += value;
|
||||
remove => _iuxPanelImplementation1.OnExit -= value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user