Files
Zoomatch_unity_ios/Assets/Scripts/ModuleUI/Regulation/RegulationUI.cs
T
2026-05-28 15:23:36 +08:00

86 lines
1.9 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using FutureCore;
using FairyGUI;
using FGUI.ZM_Make_18;
namespace ZooMatch
{
public class RegulationUI : BaseUI
{
private RegulationUICtrl ctrl;
private RegulationModel model;
private FGUI.ZM_Make_18.com_regulation ui;
public RegulationUI(RegulationUICtrl ctrl) : base(ctrl)
{
uiName = UIConst.RegulationUI;
this.ctrl = ctrl;
}
protected override void SetUIInfo(UIInfo uiInfo)
{
uiInfo.packageName = "ZM_Make_18";
uiInfo.assetName = "com_regulation";
uiInfo.layerType = UILayerType.Popup;
uiInfo.isNeedOpenAnim = true;
uiInfo.isNeedCloseAnim = true;
uiInfo.isNeedUIMask = true;
}
#region 生命周期
protected override void OnInit()
{
//model = ModuleManager.Instance.GetModel(ModelConst.RegulationModel) as RegulationModel;
}
protected override void OnClose()
{
}
protected override void OnBind()
{
ui = baseUI as FGUI.ZM_Make_18.com_regulation;
}
protected override void OnOpenBefore(object args)
{
InitView();
}
protected override void OnOpen(object args)
{
}
protected override void OnHide()
{
}
protected override void OnDisplay(object args)
{
}
#endregion
#region 消息
protected override void AddListener()
{
}
protected override void RemoveListener()
{
}
#endregion
//初始化页面逻辑
private void InitView()
{
ui.closeButton.SetClick(() =>
{
UICtrlDispatcher.Instance.Dispatch(UICtrlMsg.RegulationUI_Close);
});
}
}
}