private void SetWingPreviewCellL() { wingLv wingLvInfoPreDifferent = WingManager.GetWingLvInfoPreDifferent(this.m_current_wingId, this.m_wingLvInfoL.lv); this.m_goBtnArrowL.SetActive(wingLvInfoPreDifferent.model != this.m_wingLvInfoL.model); this.m_WingPreviewCellCurrent.SetRawImage(this.m_wingLvInfoL.model); this.m_WingPreviewCellCurrent.SetName(TextColorMgr.GetColorByQuality(this.m_wingLvInfoL.name, this.m_wingLvInfoL.color)); if (this.m_current_winglevel == 0 || this.m_wingLvInfoL.lv > this.m_current_winglevel) { this.m_WingPreviewCellCurrent.SetCondition(true, string.Format(GameDataUtils.GetChineseContent(16301, false), this.m_wingLvInfoL.lv)); } else { this.m_WingPreviewCellCurrent.SetCondition(false, string.Empty); } if (this.m_current_winglevel == 0 && !WingManager.IsCanActiveWing(this.m_current_wingId)) { wings wingInfo = WingManager.GetWingInfo(this.m_current_wingId); this.m_WingPreviewCellCurrent.ShowButtonGet(true); this.m_WingPreviewCellCurrent.actionButtonGet = delegate { this.OnClickBtnGet(wingInfo.activation.get_Item(0).key); }; } else { this.m_WingPreviewCellCurrent.ShowButtonGet(false); } }
public void OnClickOneWing(int wingId) { if (WingManager.GetWingLv(wingId) == 0) { if (WingManager.IsCanActiveWing(wingId)) { WingManager.Instance.SendWingComposeReq(wingId); } else { WingPreviewOneUI wingPreviewOneUI = UIManagerControl.Instance.OpenUI("WingPreviewOneUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush) as WingPreviewOneUI; wingPreviewOneUI.InitWithNotActive(wingId); wingPreviewOneUI.get_transform().SetAsLastSibling(); } } else { WingPreviewOneUI wingPreviewOneUI2 = UIManagerControl.Instance.OpenUI("WingPreviewOneUI", UINodesManager.MiddleUIRoot, false, UIType.NonPush) as WingPreviewOneUI; wingPreviewOneUI2.get_transform().SetAsLastSibling(); if (wingId == EntityWorld.Instance.EntSelf.Decorations.wingId) { wingPreviewOneUI2.InitWithUndress(wingId); wingPreviewOneUI2.get_transform().SetAsLastSibling(); } else { wingPreviewOneUI2.InitWithWear(wingId); wingPreviewOneUI2.get_transform().SetAsLastSibling(); } } }
public static bool CheckPage2Badge() { if (!WingManager.IsSystemOn()) { return(false); } List <wings> selectWingInfos = WingManager.GetSelectWingInfos(); using (List <wings> .Enumerator enumerator = selectWingInfos.GetEnumerator()) { while (enumerator.MoveNext()) { wings current = enumerator.get_Current(); if (WingManager.IsCanActiveWing(current.id)) { return(true); } } } return(false); }
public void Refresh() { this.ResetAll(); int wingLv = WingManager.GetWingLv(1); this.SetAttrCurr(1, wingLv > 0); if (wingLv == 0) { this.m_activeRequire.get_gameObject().SetActive(true); this.m_btnActive.get_gameObject().SetActive(true); this.SetActiveRequire(1); Image component = this.m_btnActive.GetComponent <Image>(); if (WingManager.IsCanActiveWing(1)) { this.m_btnActive.GetComponent <Button>().set_enabled(true); ImageColorMgr.SetImageColor(component, false); } else { this.m_btnActive.GetComponent <Button>().set_enabled(false); ImageColorMgr.SetImageColor(component, true); } } else if (WingManager.IsMaxWingLv(1, wingLv)) { this.SetButtonWearAndButtonUndress(); this.m_maxLevelTip.get_gameObject().SetActive(true); } else { this.m_upgradeRequire.get_gameObject().SetActive(true); this.SetButtonWearAndButtonUndress(); this.m_btnUpgrade.get_gameObject().SetActive(true); this.m_attrNext.get_gameObject().SetActive(true); this.SetUpgradeRequire(1); this.SetAttrNext(1); } }
private bool IsPlayCanActiveSpine() { return(WingManager.GetWingLv(1) == 0 && WingManager.IsCanActiveWing(1)); }
private bool IsPlayCanActiveSpine() { return(WingManager.GetWingLv(this.wingId) == 0 && WingManager.IsCanActiveWing(this.wingId)); }
public static bool CheckPage1Badge() { return(WingManager.IsSystemOn() && (WingManager.IsCanActiveWing(1) || WingManager.IsCanUpgradeWing(1))); }