97 lines
2.0 KiB
C#
97 lines
2.0 KiB
C#
|
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
|
|||
|
}
|
|||
|
}
|