private void DoPopView(PopViewParam param) { CtrlManager.OpenWindow(WindowID.NewPopView, null); NewPopView ctrl = CtrlManager.GetCtrl <NewPopView>(WindowID.NewPopView); if (ctrl != null) { ctrl.SetParam(param); } }
public void SetParam(PopViewParam p) { if (p == null) { return; } this.param = p; this.CreateTask(); this.RefreshUI(); AutoTestController.InvokeTestLogic(AutoTestTag.All, delegate { this.OnBtnOk(null); }, 1f); }
private void OnMsg_PopView_enqueue(MobaMessage msg) { PopViewParam popViewParam = msg.Param as PopViewParam; if (popViewParam != null) { if (this.QPop.Count == 0 && !this.HasPop()) { this.DoPopView(popViewParam); } else { this.QPop.Enqueue(popViewParam); } } }
public override void Init() { base.Init(); this.btnGrid = this.transform.Find("Anchor/Panel/Btns").GetComponent <UIGrid>(); this.btnOK = this.transform.Find("Anchor/Panel/Btns/Btn_OK").gameObject; this.btnCancel = this.transform.Find("Anchor/Panel/Btns/Btn_Cancel").gameObject; this.textOK = this.transform.Find("Anchor/Panel/Btns/Btn_OK/Label").GetComponent <UILabel>(); this.textCancel = this.transform.Find("Anchor/Panel/Btns/Btn_Cancel/Label").GetComponent <UILabel>(); this.content = this.transform.Find("Anchor/Panel/Text/Content").GetComponent <UILabel>(); this.title = this.transform.Find("Anchor/Panel/Text/Title").GetComponent <UILabel>(); UIEventListener.Get(this.btnOK).onClick = new UIEventListener.VoidDelegate(this.OnBtnOk); UIEventListener.Get(this.btnCancel).onClick = new UIEventListener.VoidDelegate(this.OnBtnCancel); this.AnimationRoot = this.gameObject; this.param = new PopViewParam(); this.valid = true; }
public abstract IEnumerator Run(PopViewParam param, NewPopView view);