80 lines
1.5 KiB
C#
Raw Normal View History

2025-05-18 01:04:31 +08:00
// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2021-06-16
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "GemUpgradeBox" company="Kunpo"></copyright>
// <summary></summary>
// ***********************************************************************
namespace G.UI
{
public partial class GemUpgradeBox : KUIWindow
{
#region Constructor
public GemUpgradeBox()
: base(UILayer.kFloat, UIMode.kNone)
{
uiPath = "ui_w_gem_upgrade";
}
#endregion
#region Method
#endregion
#region Mediator
readonly int[] _notificationInterests = new int[]
{
GlobalDefine.EVENT_GEM_FILTER_CHANGED,
};
public override System.Collections.Generic.IList<int> ListNotificationInterests()
{
return _notificationInterests;
}
public override void HandleNotification(PureMVC.Interfaces.INotification notification)
{
if (notification.Name == GlobalDefine.EVENT_GEM_FILTER_CHANGED)
{
RefreshFilter();
}
}
#endregion
#region Unity
/// <summary>
///
/// </summary>
public override void Awake()
{
InitView();
}
/// <summary>
///
/// </summary>
public override void OnEnable()
{
RegisterThis();
RefreshView();
}
public override void OnDisable()
{
UnregisterThis();
}
#endregion
}
}