// Token: 0x06001174 RID: 4468 RVA: 0x001E9CD8 File Offset: 0x001E7ED8 private void UpdateExtendBuildPrompt(ushort Index, ref Vector3 position) { DataManager instance = DataManager.Instance; switch ((byte)Index) { case 100: if (DataManager.StageDataController.StageRecord[2] <= 1) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_07"); } else if (instance.MySysSetting.bShowTrainingIdle && instance.RoleAttr.Morale >= instance.HeroMaxMorale) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_08"); } position.Set(0f, 2.34f, 0f); break; case 101: position.x = 0.89f; position.y = 2.11f; if (GUIManager.Instance.BuildingData.GetBuildData(8, 0).Level < 10) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_07"); } else { ActivityManager instance2 = ActivityManager.Instance; ArenaManager instance3 = ArenaManager.Instance; if (instance2.IsInKvK(0, false) || instance3.CheckArenaClose() != 0) { if (instance.MySysSetting.bShowArena) { if (instance.CheckPrizeFlag(20)) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_12"); } else if (instance3.m_ArenaNewReportNum > 0 || instance3.m_ArenaCrystalPrize > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } } } else if (instance.MySysSetting.bShowArena) { if (instance.CheckPrizeFlag(20)) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_12"); } else if (instance3.m_ArenaTodayChallenge < 5 || instance3.m_ArenaNewReportNum > 0 || instance3.m_ArenaCrystalPrize > 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } } } break; case 102: if (DataManager.StageDataController.StageRecord[2] < 3) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_07"); } else if (instance.MySysSetting.bShowTrainingIdle && DataManager.Instance.AttribVal.TotalDugoutSoldier == 0u) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_10"); } break; case 103: if (AmbushManager.Instance.GetMaxTroop() > 0u) { this.spriteRender.enabled = true; } else { this.spriteRender.enabled = false; } break; case 104: if (GUIManager.Instance.BuildingData.GetBuildData(8, 0).Level < 13) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_07"); } else if (instance.MySysSetting.bShowTrainingIdle && MerchantmanManager.Instance.TradeStatus < 15) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } break; case 105: { GUIManager instance4 = GUIManager.Instance; if (instance4.BuildingData.bHideLaboryPromptLock == 0 && (DataManager.Instance.RoleAttr.Guide & 16777216UL) == 0UL && instance4.BoxID[0] == 0) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_07"); } else if (instance.MySysSetting.bShowTrainingIdle) { bool flag = true; for (int i = 0; i < instance4.BoxID.Length; i++) { if (instance4.BoxTime[i] > 0L & instance4.BoxID[i] > 0) { flag = false; if (instance4.BoxTime[i] < instance.ServerTime) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); break; } } } if (flag) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_10"); } } break; } case 106: position.x = 0.47f; position.y = 1.35f; if (GamblingManager.Instance.IsDailyFreeScardStar(UIBattle_Gambling.eMode.Normal) || GamblingManager.Instance.IsDailyFreeScardStar(UIBattle_Gambling.eMode.Turbo)) { this.PromptRender.sprite = this.mapspriteManager.GetSpriteByName("prompt_09"); } break; } }