PranticePromptPanel.cs 999 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. using QFramework;
  4. using UnityEditor;
  5. namespace QFramework
  6. {
  7. public class PranticePromptPanelData : UIPanelData
  8. {
  9. }
  10. public partial class PranticePromptPanel : UIPanel
  11. {
  12. protected override void ProcessMsg(int eventId, QMsg msg)
  13. {
  14. throw new System.NotImplementedException();
  15. }
  16. protected override void OnInit(IUIData uiData = null)
  17. {
  18. mData = uiData as PranticePromptPanelData ?? new PranticePromptPanelData();
  19. // please add init code here
  20. ReselectionBtn.onClick.AddListener(() => { CloseSelf(); });
  21. OpenPrompt.onClick.AddListener(() =>
  22. {
  23. OperateSetting.Instance.ToolPackUILogic.SetHint(true);
  24. CloseSelf();
  25. });
  26. }
  27. protected override void OnOpen(IUIData uiData = null)
  28. {
  29. if (UIKit.GetPanel<ChallengeResultPanel>()) CloseSelf();
  30. }
  31. protected override void OnShow()
  32. {
  33. }
  34. protected override void OnHide()
  35. {
  36. }
  37. protected override void OnClose()
  38. {
  39. }
  40. }
  41. }