添加了教育平台

This commit is contained in:
CortexCore
2023-06-29 01:01:52 +08:00
parent 254e8ccde8
commit dd10fb59e5
128 changed files with 5270 additions and 166 deletions

View File

@@ -10,11 +10,12 @@ public partial class UXPanel : Control, IUXPanel
[Export] private bool allowInput;
[Export] private bool isStartPanel;
public bool IsAnimate => isAnimate;
public string Index => GetType().FullName == typeof(UXPanel).FullName ? Name : GetType().FullName;
public string Index => _index;
public bool AllowCursor => allowCursor;
public bool AllowInput => allowInput;
private string _index;
public virtual void OnEntry(){}
public virtual void Entry()
{
@@ -32,6 +33,7 @@ public partial class UXPanel : Control, IUXPanel
public override void _Ready()
{
_index = GetType().FullName == typeof(UXPanel).FullName ? Name : GetType().FullName;
UXService.Register(this);
if (isStartPanel)
@@ -43,8 +45,13 @@ public partial class UXPanel : Control, IUXPanel
{
UXService.Open(this as IUXPanel);
}
protected override void Dispose(bool disposing)
public override void _ExitTree()
{
UXService.UnRegister(this);
}
// protected override void Dispose(bool disposing)
// {
// UXService.UnRegister(this);
// }
}