ExamPromptPanel.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. using QFramework;
  4. using ChivaXR;
  5. using ChivaXR.Op;
  6. namespace QFramework
  7. {
  8. public class ExamPromptPanelData : UIPanelData
  9. {
  10. }
  11. public partial class ExamPromptPanel : UIPanel
  12. {
  13. protected override void ProcessMsg(int eventId, QMsg msg)
  14. {
  15. throw new System.NotImplementedException();
  16. }
  17. protected override void OnInit(IUIData uiData = null)
  18. {
  19. mData = uiData as ExamPromptPanelData ?? new ExamPromptPanelData();
  20. // please add init code here
  21. confirmBtn.onClick.AddListener(() =>
  22. {
  23. OperateSetting.Instance.ToolPackUILogic.SetHint(true);
  24. CloseSelf();
  25. });
  26. }
  27. protected override void OnOpen(IUIData uiData = null)
  28. {
  29. int tmpCurrentId = ProcessManagement.Instance.currentStepID;
  30. ExamProcessElement tmpElement = ExamManagerForPC.instance.m_examProcessElements.Find(elemment => elemment.id == tmpCurrentId);
  31. if (tmpElement != null)
  32. {
  33. PromptText.text = "²¿¼þÑ¡Ôñ´íÎó" + " " + "-" + tmpElement.scores;
  34. }
  35. }
  36. protected override void OnShow()
  37. {
  38. }
  39. protected override void OnHide()
  40. {
  41. }
  42. protected override void OnClose()
  43. {
  44. }
  45. }
  46. }