void BtnOK_OnClickEventHandler(UIButton sender) { if (m_iWndType == 3) { PdbbbWnd wnd = WndManager.FindDialog <PdbbbWnd>(); if (wnd) { wnd.RefreshUI(); } } else if (m_iWndType == 5) { if (BtnOKClickHandler != null) { BtnOKClickHandler(); } WndManager.DestoryDialog <TrophiesActionWnd>(); return; } if (mItemInfos.Count == 0) { WndManager.DestoryDialog <TrophiesActionWnd>(); if (FinalEventClikHandler != null) { FinalEventClikHandler(null); } } else { ResetAni(); GetTropies(0, null); } }
void DestoryDialogCallBack(object o) { WndManager.DestoryDialog <PdbycWnd>(); WndManager.DestoryDialog <HeroIntroduceWnd>(); WndManager.DestoryDialog <AddSkillWnd>(); PdbbbWnd wnd = WndManager.FindDialog <PdbbbWnd>(); if (wnd) { wnd.RefreshUI(); } }
public override void WndStart() { base.WndStart(); MyHead.BtnSoldierNext.OnClickEventHandler += BtnSoldierNext_OnClickEventHandler; MyHead.BtnSoldierPrev.OnClickEventHandler += BtnSoldierPrev_OnClickEventHandler; MyHead.BtnClickSoldier.OnClickEventHandler += BtnClickSoldier_OnClickEventHandler; MyHead.BtnClose.OnClickEventHandler += BtnClose_OnClickEventHandler; MyHead.BtnGetSoulStone.OnClickEventHandler += BtnGetSoulStone_OnClickEventHandler; MyHead.BtnJinSheng.OnClickEventHandler += BtnJinSheng_OnClickEventHandler; MyHead.BtnShengXing.OnClickEventHandler += BtnShengXing_OnClickEventHandler; MyHead.BtnTips.OnClickEventHandler += BtnHelp; MyHead.SprTipsInfo.gameObject.SetActive(false); EventDelegate.Add(MyHead.Toggle1.onChange, Toggle1); EventDelegate.Add(MyHead.Toggle2.onChange, Toggle2); EventDelegate.Add(MyHead.Toggle3.onChange, Toggle3); PdbbbWnd wnd = WndManager.FindDialog <PdbbbWnd>(); if (wnd != null) { m_allExistSoldier = wnd.AllExistSoldier; if (m_allExistSoldier.Count < 2) { MyHead.BtnSoldierNext.gameObject.SetActive(false); MyHead.BtnSoldierPrev.gameObject.SetActive(false); } } else { MyHead.BtnSoldierNext.gameObject.SetActive(false); MyHead.BtnSoldierPrev.gameObject.SetActive(false); } RegisterHooks(); DoWndEffect(); }