protected override void OnRelease() { base.OnRelease(); this._index = 0; checkBoxs.setMaskState(0); everyMultList.Release(); //日常 rewardMultList.Release(); //悬赏 }
protected override void ShowHandler() { base.ShowHandler(); //icon.spriteName = playerData.GetInstance().iconData.icon_name + "_head"; ////iconBorder.spriteName = playerData.GetInstance().iconFrameData.iconFrame_name; //playerName.text = playerData.GetInstance().selfData.playeName; //lvLab.text = playerData.GetInstance().selfData.level.ToString(); //int fcSums = 0; //for (int i = 0; i < playerData.GetInstance().herodataList.Count; i++) //{ // fcSums += playerData.GetInstance().herodataList[i].fc; //} //playerData.GetInstance().selfData.FightLv = fcSums; ///所有英雄的总战力 Debug.Log(this.index + "showhandle"); checkBoxs.setMaskState(this.index); Debug.Log(this.index + "showha"); Debug.Log("222"); TypeHandle(type); }
protected override void ShowHandler() { checkBoxs.setMaskState(isShopss); RefrshData(); if (this.indexss == 0) { coinTypeLab.text = ""; coinTypeSp.gameObject.SetActive(false); Control.ShowGUI(UIPanleID.UIMoney, EnumOpenUIType.DefaultUIOrSecond); } else if (this.indexss == 1) { coinTypeSp.gameObject.SetActive(true); coinTypeLab.gameObject.SetActive(true); Control.HideGUI(UIPanleID.UIMoney); } else if (this.indexss == 2) { coinTypeSp.gameObject.SetActive(true); coinTypeLab.gameObject.SetActive(true); Control.HideGUI(UIPanleID.UIMoney); } else if (this.indexss == 3) { } }
private void OnBackClick() { checkBoxs.setMaskState(0); transform.parent.Find("Panel").gameObject.SetActive(true); Hide(); Control.HideGUI(this.GetUIKey()); Control.ShowGUI(UIPanleID.UI_SelectServer, EnumOpenUIType.DefaultUIOrSecond); //返回必须重置开始状态,否则登录不了 UISelectServer.Instance.ResetIsStart(false); }
void RefreshUI() { for (int i = 0; i < multList.Length; i++) { if (i != _index) { multList[i].gameObject.SetActive(false); } } if (!multList[_index].gameObject.activeInHierarchy) { multList[_index].gameObject.SetActive(true); } if (_index == 0) { checkBoxs.setMaskState(_index); _searchHeroPanel.gameObject.SetActive(true); } else { _searchHeroPanel.gameObject.SetActive(false); } }
protected override void ShowHandler() { for (int i = 0; i < obj.Length; i++) { if (i != _index) { obj[i].SetActive(false); } } if (!obj[_index].activeInHierarchy) { obj[_index].SetActive(true); } checkBoxs.setMaskState(_index); if (_index != 0) { HeroPosEmbattle.instance.HideModel(PosType.uisign); } ShowEnrgyData(); ShowRedTag(); Rfresh(); SetTitleString(_index); //ShowRedPoint(Singleton<RedPointManager>.Instance.GetRedList()); }
protected override void ShowHandler() { base.ShowHandler(); upPageBtn.gameObject.SetActive(false); nextPageBtn.gameObject.SetActive(false); InitListData(); //scrollView.ResetPosition(); OnTypeHeroTabClick(0, true); typeHeroTab.setMaskState(0); maxPage = obj.Length / 10; if ((obj.Length % 10) > 0) { maxPage++; } currentPage = 1; if (1 < currentPage) { upPageBtn.gameObject.SetActive(true); } if (currentPage < maxPage) { nextPageBtn.gameObject.SetActive(true); } }