28 lines
910 B
C#
28 lines
910 B
C#
using ET.EventType;
|
|
using ET;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace ET
|
|
{
|
|
public class OpenConsignmentEvent : AEvent<OpenConsignmentUI>
|
|
{
|
|
public override async ETTask Run(OpenConsignmentUI args)
|
|
{
|
|
PosHelper.CheckSceneError(Cal.DataTable.Sys_SceneId.Scene_MainCity, "寄售");
|
|
var ui = await FUIHelper.Open<FUI_ConsignmentUI>(args.zoneScene, FUIPackage.Consignment_ConsignmentUI, WindowPos.Center, (_ui)=>
|
|
{
|
|
//ui.m_Effect.Play();
|
|
});
|
|
var window = ui.GetComponent<FUIWindowComponent>();
|
|
var consignmentUI = ui.AddComponent<ConsignmentUI,List<ConsignMap>,int>(args.mapList,args.totalPage);
|
|
window.Window.OnHideEvent += () =>
|
|
{
|
|
ui.RemoveComponent<ConsignmentUI>();
|
|
};
|
|
await ETTask.CompletedTask;
|
|
}
|
|
}
|
|
}
|