1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- using Chiva.Toolkit.Function.NoBorder;
- using UnityEngine;
- using UnityEngine.UI;
- using QFramework;
- namespace QFramework
- {
- public class PC_TitlePanelData : UIPanelData
- {
- }
- public partial class PC_TitlePanel : UIPanel
- {
- protected override void ProcessMsg(int eventId, QMsg msg)
- {
- throw new System.NotImplementedException();
- }
-
- protected override void OnInit(IUIData uiData = null)
- {
- mData = uiData as PC_TitlePanelData ?? new PC_TitlePanelData();
-
- MinBtn.onClick.AddListener(() => WindowsSetting.Instance.OnMinBtnClick());
- CloseBtn.onClick.AddListener(() =>
- {
-
- });
-
- TrainBtn.onClick.AddListener(() =>
- {
- UIKit.OpenPanel<PC_NonTrainingPanel>();
- });
- }
-
- protected override void OnOpen(IUIData uiData = null)
- {
- }
-
- protected override void OnShow()
- {
- }
-
- protected override void OnHide()
- {
- }
-
- protected override void OnClose()
- {
- }
- public void SetBtnsState(bool state)
- {
- CloseBtn.gameObject.SetActive(state);
- MinBtn.gameObject.SetActive(state);
- TrainBtn.gameObject.SetActive(state);
- }
- }
- }
|