2021-05-25 01:14:19 +08:00
|
|
|
using ET;
|
2021-04-08 20:09:59 +08:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace ET
|
|
|
|
{
|
|
|
|
[UIEvent(FUIPackage.Dialog_NoticeUI)]
|
|
|
|
public class NoticeUIEvent : AUIEvent
|
|
|
|
{
|
|
|
|
public override async ETTask<FUI> OnCreate(FUIComponent fuiComponent)
|
|
|
|
{
|
|
|
|
if (!(FUIComponent.Instance.Get(FUIPackage.Dialog_NoticeUI) is FUI_NoticeUI ui))
|
|
|
|
{
|
2021-05-25 01:14:19 +08:00
|
|
|
ui =await FUI_NoticeUI.CreateInstanceAsync(fuiComponent);
|
2021-04-08 20:09:59 +08:00
|
|
|
ui.Name = FUIPackage.Dialog_NoticeUI;
|
|
|
|
}
|
|
|
|
return ui;
|
|
|
|
}
|
|
|
|
|
|
|
|
public override void OnRemove(FUIComponent fuiComponent)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|