public void Init(int wingId) { WingGlobal.ResetRawImage(); if (this.m_WingPreviewCellCurrent != null && this.m_WingPreviewCellCurrent.get_gameObject() != null) { Object.Destroy(this.m_WingPreviewCellCurrent.get_gameObject()); } if (this.m_WingPreviewCellNext != null && this.m_WingPreviewCellNext.get_gameObject() != null) { Object.Destroy(this.m_WingPreviewCellNext.get_gameObject()); } this.m_current_wingId = wingId; this.m_current_winglevel = WingManager.GetWingLv(wingId); this.m_wingLvInfoL = WingManager.GetWingLvInfo(this.m_current_wingId, this.m_current_winglevel); this.m_wingLvInfoR = WingManager.GetWingLvInfoNextDifferent(this.m_current_wingId, this.m_current_winglevel); if (this.m_wingLvInfoL.model == this.m_wingLvInfoR.model) { this.m_wingLvInfoL = WingManager.GetWingLvInfoPreDifferent(this.m_current_wingId, this.m_current_winglevel); } this.m_WingPreviewCellCurrent = WingGlobal.GetOneWingPreview(base.get_transform()); this.m_WingPreviewCellCurrent.get_transform().set_localPosition(new Vector3(-245f, 0f)); this.m_WingPreviewCellNext = WingGlobal.GetOneWingPreview(base.get_transform()); this.m_WingPreviewCellNext.get_transform().set_localPosition(new Vector3(245f, 0f)); base.get_transform().Find("imgArrow").SetAsLastSibling(); this.SetWingPreviewCellAll(); }
private void OnClickBtnArrowR() { this.SetWingPreviewCellAll(); wingLv wingLvInfoNextDifferent = WingManager.GetWingLvInfoNextDifferent(this.m_current_wingId, this.m_wingLvInfoR.lv); if (wingLvInfoNextDifferent.model == this.m_wingLvInfoR.model) { return; } this.m_wingLvInfoL = this.m_wingLvInfoR; this.m_wingLvInfoR = wingLvInfoNextDifferent; WingGlobal.ResetRawImage(); this.SetWingPreviewCellAll(); }
private void SetWingPreviewCellR() { wingLv wingLvInfoNextDifferent = WingManager.GetWingLvInfoNextDifferent(this.m_current_wingId, this.m_wingLvInfoR.lv); this.m_goBtnArrowR.SetActive(wingLvInfoNextDifferent.model != this.m_wingLvInfoR.model); this.m_WingPreviewCellNext.SetRawImage(this.m_wingLvInfoR.model); this.m_WingPreviewCellNext.SetName(TextColorMgr.GetColorByQuality(this.m_wingLvInfoR.name, this.m_wingLvInfoR.color)); if (wingLvInfoNextDifferent.model == this.m_wingLvInfoR.model && WingManager.IsMaxWingLv(this.m_current_wingId, this.m_current_winglevel)) { this.m_WingPreviewCellNext.SetCondition(true, "已获得最高级"); } else { this.m_WingPreviewCellNext.SetCondition(this.m_wingLvInfoR.lv > this.m_current_winglevel, string.Format(GameDataUtils.GetChineseContent(16301, false), this.m_wingLvInfoR.lv)); } this.m_WingPreviewCellNext.ShowButtonGet(false); }