108 lines
2.0 KiB
C#
Raw Normal View History

2025-05-18 01:04:31 +08:00
// ***********************************************************************
// Assembly : Game
// Author : Kimch
// Created : 2021-04-20
// Description :
// Last Modified By :
// Last Modified On :
// ***********************************************************************
// <copyright file= "EquipmentWindow" company="Kunpo"></copyright>
// <summary></summary>
// ***********************************************************************
namespace G.UI
{
/// <summary>
/// 装备培养
/// </summary>
public partial class EquipmentWindow : KUIWindow
{
#region Constructor
public EquipmentWindow()
: base(UILayer.kFloat, UIMode.kNone)
{
uiPath = "ui_w_equipment";
}
#endregion
#region Method
#endregion
#region Unity
/// <summary>
///
/// </summary>
public override void Awake()
{
InitView();
}
/// <summary>
///
/// </summary>
public override void OnEnable()
{
RegisterThis();
RefreshView();
}
public override void OnDisable()
{
UnregisterThis();
}
/// <summary>
///
/// </summary>
public override void Update()
{
UpdateView();
}
/// <summary>
///
/// </summary>
public override void UpdatePerSecond()
{
}
#endregion
#region Mediator
private readonly int[] _notificationInterests = new int[]
{
GlobalDefine.EVENT_EQUIPMENT_SLOT_SELECT,
GlobalDefine.EVENT_PLAYER_EQUIPMENT_CHANGED,
};
public override System.Collections.Generic.IList<int> ListNotificationInterests()
{
return _notificationInterests;
}
public override void HandleNotification(PureMVC.Interfaces.INotification notification)
{
if (notification.Name == GlobalDefine.EVENT_EQUIPMENT_SLOT_SELECT)
{
SetSelect(notification.Body as PlayerProxy.EquipmentSlotInfo);
}
else if (notification.Name == GlobalDefine.EVENT_PLAYER_EQUIPMENT_CHANGED)
{
if (notification.Type == "upgrade")
{
RefreshSlot();
}
}
}
#endregion
}
}