Files
2025-01-25 04:38:09 +08:00

97 lines
2.0 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using UnityEngine;
using System.Collections;
using Thousandto.Plugins.Common;
namespace Thousandto.GameUI.Form
{
/// <summary>
/// {请在这里把当前窗体的功能描述写好!}
/// </summary>
public class UITemplate : UINormalForm
{
#region //UI控件
#endregion
#region //私有成员
#endregion
#region //公有成员
#endregion
#region //静态成员
#endregion
#region //继承Form函数
protected override void OnRegisterEvents()
{
base.OnRegisterEvents();
//ToDo,这里请填写开启的窗体,关闭窗体的消息
//RegistDefaultUIEvent(UIEventDefine.UIMainForm_OPEN, UIEventDefine.UIMainForm_CLOSE);
}
protected override void OnFirstShow()
{
base.OnFirstShow();
FindAllComponents();
RegUICallback();
AddAlphaAnimation();
}
protected override void OnShowBefore()
{
base.OnShowBefore();
}
protected override void OnShowAfter()
{
base.OnShowAfter();
}
protected override void OnLoad()
{
base.OnLoad();
}
protected override void OnUnload()
{
base.OnUnload();
}
#endregion
#region //界面按钮回调
/// <summary>
/// 点击界面上关闭按钮
/// </summary>
private void OnClickCloseBtn()
{
Hide();
}
#endregion
#region //私有功能函数
/// <summary>
/// 查找UI上各个控件
/// </summary>
private void FindAllComponents()
{
}
/// <summary>
/// 注册UI上面的事件比如点击事件等
/// </summary>
private void RegUICallback()
{
}
#endregion
#region //公有功能函数
#endregion
}
}