// *********************************************************************** // Assembly : Game // Author : Kimch // Created : 2021-04-12 // Description : // Last Modified By : // Last Modified On : // *********************************************************************** // // // *********************************************************************** 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 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 /// /// /// public override void Awake() { InitView(); } /// /// /// public override void OnEnable() { RegisterThis(); //GetWindow().ShowTop(201); RefreshView(); PostNotification(GlobalDefine.EVENT_WINDOW_OPENED, "", nameof(BeautyWindow)); } public override void OnDisable() { //GetWindow().ShowTop(0); UnregisterThis(); } #endregion } }