101 lines
2.0 KiB
C#
101 lines
2.0 KiB
C#
// ***********************************************************************
|
|
// Assembly : Game
|
|
// Author : Kimch
|
|
// Created : 2021-04-12
|
|
// Description :
|
|
// Last Modified By :
|
|
// Last Modified On :
|
|
// ***********************************************************************
|
|
// <copyright file= "BeautyWindow" company="Kunpo"></copyright>
|
|
// <summary></summary>
|
|
// ***********************************************************************
|
|
|
|
using System.Collections.Generic;
|
|
|
|
namespace G.UI
|
|
{
|
|
public partial class BeautyWindow : KUIWindow
|
|
{
|
|
#region Constructor
|
|
|
|
public BeautyWindow()
|
|
: base(UILayer.kFloat, UIMode.kSequenceHide)
|
|
{
|
|
uiPath = "ui_w_beauty";
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Method
|
|
|
|
#endregion
|
|
|
|
#region Mediator
|
|
|
|
readonly int[] _notificationInterests = new int[]
|
|
{
|
|
GlobalDefine.EVENT_BEAUTY_WINDOW,
|
|
};
|
|
|
|
public override IList<int> ListNotificationInterests()
|
|
{
|
|
return _notificationInterests;
|
|
}
|
|
|
|
public override void HandleNotification(PureMVC.Interfaces.INotification notification)
|
|
{
|
|
if (notification.Type == "detail")
|
|
{
|
|
ShowDetailPanel(notification.Body);
|
|
}
|
|
else if (notification.Type == "skill")
|
|
{
|
|
ShowSkillPanel(notification.Body);
|
|
}
|
|
else if (notification.Type == "skin")
|
|
{
|
|
ShowSkinPanel(notification.Body);
|
|
}
|
|
else if (notification.Type == "gift1")
|
|
{
|
|
ShowGift1Panel(notification.Body);
|
|
}
|
|
else if (notification.Type == "gift2")
|
|
{
|
|
ShowGift2Panel(notification.Body);
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region Unity
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void Awake()
|
|
{
|
|
InitView();
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public override void OnEnable()
|
|
{
|
|
RegisterThis();
|
|
//GetWindow<MainWindow>().ShowTop(201);
|
|
RefreshView();
|
|
PostNotification(GlobalDefine.EVENT_WINDOW_OPENED, "", nameof(BeautyWindow));
|
|
}
|
|
|
|
public override void OnDisable()
|
|
{
|
|
//GetWindow<MainWindow>().ShowTop(0);
|
|
UnregisterThis();
|
|
}
|
|
|
|
#endregion
|
|
}
|
|
}
|