89 lines
1.6 KiB
C#
89 lines
1.6 KiB
C#
// ***********************************************************************
|
|
// Assembly : Game
|
|
// Author : Kimch
|
|
// Created : 2021-03-28
|
|
// Description :
|
|
// Last Modified By :
|
|
// Last Modified On :
|
|
// ***********************************************************************
|
|
// <copyright file= "SwordWindow" company="Kunpo"></copyright>
|
|
// <summary></summary>
|
|
// ***********************************************************************
|
|
|
|
namespace G.UI
|
|
{
|
|
public partial class SwordWindow : KUIWindow
|
|
{
|
|
#region Constructor
|
|
|
|
public SwordWindow()
|
|
: base(UILayer.kNormal, UIMode.kSequenceHide)
|
|
{
|
|
uiPath = "ui_w_sword";
|
|
}
|
|
|
|
#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 UpdatePerSecond()
|
|
{
|
|
UpdateView();
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Mediator
|
|
|
|
private readonly int[] _notificationInterests = new int[]
|
|
{
|
|
GlobalDefine.EVENT_SWORD_CLICK,
|
|
};
|
|
|
|
public override System.Collections.Generic.IList<int> ListNotificationInterests()
|
|
{
|
|
return _notificationInterests;
|
|
}
|
|
|
|
public override void HandleNotification(PureMVC.Interfaces.INotification notification)
|
|
{
|
|
if (notification.Name == GlobalDefine.EVENT_SWORD_CLICK)
|
|
{
|
|
ShowSwordDetail(notification.Body as SwordProxy.SwordInfo);
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
}
|
|
}
|