public void SetScoreTitleText(string floorName) { TowerScore.SetText(this.m_ScoreTitle, LocalizedText.Get("sys.TOWER_BRAGDOWN_SCORE_FLOOR", new object[1] { (object)floorName })); }
public void Setup(TowerScore.ViewParam param, TowerResuponse.TowerRankParam[] spdRankData, TowerResuponse.TowerRankParam[] tecRankData) { if (param.IsNoData) { TowerScore.SetText(this.m_TurnNum, this.NotSocreText); TowerScore.SetText(this.m_DiedNum, this.NotSocreText); TowerScore.SetText(this.m_RetireNum, this.NotSocreText); TowerScore.SetText(this.m_RecoveryNum, this.NotSocreText); TowerScore.SetText(this.m_FloorResetNum, this.NotSocreText); TowerScore.SetText(this.m_ChallengeNum, this.NotSocreText); TowerScore.SetText(this.m_LoseNum, this.NotSocreText); } else { TowerScore.SetText(this.m_TurnNum, param.TurnNum); TowerScore.SetText(this.m_DiedNum, param.DiedNum); TowerScore.SetText(this.m_RetireNum, param.RetireNum); TowerScore.SetText(this.m_RecoveryNum, param.RecoveryNum); TowerScore.SetText(this.m_FloorResetNum, param.FloorResetNum); TowerScore.SetText(this.m_ChallengeNum, param.ChallengeNum); TowerScore.SetText(this.m_LoseNum, param.LoseNum); } if (((((false ? 1 : 0) | (spdRankData == null ? 1 : (spdRankData.Length < 1 ? 1 : 0))) != 0 ? 1 : 0) | (tecRankData == null ? 1 : (tecRankData.Length < 1 ? 1 : 0))) != 0) { GameUtility.SetGameObjectActive(this.m_NoRankData, true); GameUtility.SetGameObjectActive((Component)this.m_SpdRankTop, false); GameUtility.SetGameObjectActive((Component)this.m_TecRankTop, false); GameUtility.SetGameObjectActive(this.m_SpdRankHeader, false); GameUtility.SetGameObjectActive(this.m_TecRankHeader, false); } else { this.SetRankData(this.m_SpdRankTop, spdRankData); this.SetRankData(this.m_TecRankTop, tecRankData); GameUtility.SetGameObjectActive(this.m_NoRankData, false); GameUtility.SetGameObjectActive((Component)this.m_SpdRankTop, true); GameUtility.SetGameObjectActive((Component)this.m_TecRankTop, true); GameUtility.SetGameObjectActive(this.m_SpdRankHeader, true); GameUtility.SetGameObjectActive(this.m_TecRankHeader, true); } }
private void CreateQuestDetailWindow(UnityEngine.Object template) { QuestParam dataOfClass = DataSource.FindDataOfClass <QuestParam>(((Component)this).get_gameObject(), (QuestParam)null); if (UnityEngine.Object.op_Equality((UnityEngine.Object) this.m_TowerQuestDetail, (UnityEngine.Object)null) && dataOfClass != null) { this.m_TowerQuestDetail = UnityEngine.Object.Instantiate(template) as GameObject; DataSource.Bind <QuestParam>(this.m_TowerQuestDetail, dataOfClass); QuestCampaignData[] questCampaigns = MonoSingleton <GameManager> .Instance.FindQuestCampaigns(dataOfClass); DataSource.Bind <QuestCampaignData[]>(this.m_TowerQuestDetail, questCampaigns.Length != 0 ? questCampaigns : (QuestCampaignData[])null); TowerResuponse towerResuponse = MonoSingleton <GameManager> .Instance.TowerResuponse; TowerScore componentInChildren = (TowerScore)this.m_TowerQuestDetail.GetComponentInChildren <TowerScore>(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object)componentInChildren, (UnityEngine.Object)null) && towerResuponse != null) { componentInChildren.SetScoreTitleText(dataOfClass.name); componentInChildren.Setup(towerResuponse.FloorScores, towerResuponse.FloorSpdRank, towerResuponse.FloorTecRank); } this.m_TowerQuestDetail.SetActive(true); } FlowNode_GameObject.ActivateOutputLinks((Component)this, 1200); }