12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using UnityEngine;
- using UnityEngine.UI;
- using QFramework;
- using ChivaXR;
- using ChivaXR.Op;
- namespace QFramework
- {
- public class ExamPromptPanelData : UIPanelData
- {
- }
- public partial class ExamPromptPanel : UIPanel
- {
- protected override void ProcessMsg(int eventId, QMsg msg)
- {
- throw new System.NotImplementedException();
- }
-
- protected override void OnInit(IUIData uiData = null)
- {
- mData = uiData as ExamPromptPanelData ?? new ExamPromptPanelData();
- // please add init code here
- confirmBtn.onClick.AddListener(() =>
- {
- OperateSetting.Instance.ToolPackUILogic.SetHint(true);
- CloseSelf();
- });
- }
-
- protected override void OnOpen(IUIData uiData = null)
- {
- int tmpCurrentId = ProcessManagement.Instance.currentStepID;
- ExamProcessElement tmpElement = ExamManagerForPC.instance.m_examProcessElements.Find(elemment => elemment.id == tmpCurrentId);
- if (tmpElement != null)
- {
- PromptText.text = "²¿¼þÑ¡Ôñ´íÎó" + " " + "-" + tmpElement.scores;
- }
- }
-
- protected override void OnShow()
- {
- }
-
- protected override void OnHide()
- {
- }
-
- protected override void OnClose()
- {
- }
- }
- }
|