private void OnMsg_runesviewInitToggle(MobaMessage msg) { if (msg.Param != null) { string value = string.Empty; value = (string)msg.Param; this.heroNpc = value; RunesFunctionType runesFunctionType; if (string.IsNullOrEmpty(value)) { runesFunctionType = RunesFunctionType.Storage; } else { runesFunctionType = RunesFunctionType.Inlay; } if (this.dicToggle != null && this.dicToggle.ContainsKey(runesFunctionType)) { this.currType = runesFunctionType; this.dicToggle[runesFunctionType].value = true; if (this.currType == RunesFunctionType.Storage) { this.toggleType = RunesOverView.RuneToggleState.DisableInlay; } else { this.toggleType = RunesOverView.RuneToggleState.EnableInlay; } } this.bottomAnchor.gameObject.SetActive(this.currType == RunesFunctionType.Storage); MobaMessageManagerTools.SendClientMsg(ClientV2C.runesviewChangeToggle, runesFunctionType, false); } }
private void OnMsg_runesviewChangeToggle(MobaMessage msg) { if (msg.Param != null) { RunesFunctionType runesFunctionType = (RunesFunctionType)((int)msg.Param); this.transStorage.gameObject.SetActive(runesFunctionType == RunesFunctionType.Storage); } }
private void OnMsg_runesviewChangeToggle(MobaMessage msg) { if (msg.Param != null) { RunesFunctionType runesFunctionType = (RunesFunctionType)((int)msg.Param); this.transFilterArea.gameObject.SetActive(runesFunctionType == RunesFunctionType.Storage); this.transProcessBar.gameObject.SetActive(runesFunctionType == RunesFunctionType.Storage); this.transBG.gameObject.SetActive(runesFunctionType == RunesFunctionType.Storage); this.InitArea(runesFunctionType == RunesFunctionType.Storage); } }
private void OnMsg_runesviewChangeToggle(MobaMessage msg) { if (msg.Param != null) { RunesFunctionType runesFunctionType = (RunesFunctionType)((int)msg.Param); this.transInlay.gameObject.SetActive(false); if (runesFunctionType == RunesFunctionType.Inlay) { this.transInlay.gameObject.SetActive(true); this.thisRP.isNeedRefresh = true; this.thisRP.runesItem = null; this.CollectRunes(); this.GenerateSort(0); } } }
private void OnMsg_runesviewChangeToggle(MobaMessage msg) { if (msg.Param != null) { if (Singleton <RunesOverView> .Instance != null) { this.heroNPC = Singleton <RunesOverView> .Instance.HeroNpc; } RunesFunctionType runesFunctionType = (RunesFunctionType)((int)msg.Param); this.transHeroRunes.gameObject.SetActive(runesFunctionType == RunesFunctionType.Inlay); this.btnAllDemount.gameObject.SetActive(runesFunctionType == RunesFunctionType.Inlay); this.InitGroove(runesFunctionType == RunesFunctionType.Inlay); if (null != this.lastRune) { this.lastRune = null; } } }
private void OnMsg_runesviewChangeToggle(MobaMessage msg) { if (msg.Param != null) { RunesFunctionType runesFunctionType = (RunesFunctionType)((int)msg.Param); this.btnCoalesceAll.parent.gameObject.SetActive(true); this.transConfirm.gameObject.SetActive(false); this.btnConfirm.parent.gameObject.SetActive(false); this.confirmBG.gameObject.SetActive(false); this.coalesceBG.gameObject.SetActive(true); if (runesFunctionType == RunesFunctionType.Storage) { this.SetBtnState(); if (this.coroutine != null) { base.StopCoroutine("SyncGetData"); } this.coroutine = base.StartCoroutine("SyncGetData"); } } }
private void ClickBtn() { if (UIToggle.current.value) { if (this.toggleType == RunesOverView.RuneToggleState.DisableInlay && UIToggle.current == this.runesInlayView) { Singleton <TipView> .Instance.ShowViewSetText("未选择英雄,无法跳转!!!", 1f); this.dicToggle[RunesFunctionType.Storage].value = true; return; } foreach (KeyValuePair <RunesFunctionType, UIToggle> current in this.dicToggle) { if (current.Value == UIToggle.current) { this.CurrType = current.Key; break; } } } }