UI update 02

This commit is contained in:
FloatGaming
2026-06-30 21:21:30 +08:00
parent b2a1e307a4
commit f62f643cfc
1666 changed files with 211081 additions and 22799 deletions
+2 -3
View File
@@ -398,7 +398,7 @@ public class UI_Idols : MonoBehaviour
}
#endif
AllyHero_SO[] loadedHeroes = Resources.LoadAll<AllyHero_SO>(string.IsNullOrWhiteSpace(idolSOpath_runtime) ? string.Empty : idolSOpath_runtime);
AllyHero_SO[] loadedHeroes = RuntimeResourcesCache.LoadAllAllyHeroes();
for (int i = 0; i < loadedHeroes.Length; i++)
{
if (loadedHeroes[i] != null)
@@ -557,8 +557,7 @@ public class UI_Idols : MonoBehaviour
levels.Sort((left, right) => left.requiredEXP.CompareTo(right.requiredEXP));
int currentExp = Mathf.Max(0, hero.ally_currentEXP);
int unlockedTierIndex = Mathf.Clamp(hero.ally_growthUnlockedTierIndex, 0, levels.Count - 1);
int displayIndex = unlockedTierIndex;
int displayIndex = Mathf.Clamp(hero.GetUnlockedLevelIndex(), 0, levels.Count - 1);
AllyHero_SO.AllyLevelInfo currentLevel = levels[displayIndex];
int tierIndex = ResolveTierIndex(currentLevel, displayIndex, levels.Count);
snapshot.levelIcon = GetLevelIconByIndex(tierIndex);
+1 -1
View File
@@ -540,7 +540,7 @@ public class idolEquipments : MonoBehaviour
}
#endif
return Resources.LoadAll<AllyHero_SO>("so/ally");
return RuntimeResourcesCache.LoadAllAllyHeroes();
}
private Color ResolveEquipmentColor(int colorIndex)
+1 -1
View File
@@ -44,7 +44,7 @@ public class idolRadarController : MonoBehaviour
private void TryApplyPendingHero()
{
EnsureController();
if (radarChartController == null || radarChartController.chartBridge == null || radarChartController.chartBridge.Profile == null)
if (radarChartController == null || !radarChartController.IsRendererReady)
{
return;
}
+1 -1
View File
@@ -559,7 +559,7 @@ public class idolUpgrade : MonoBehaviour
return result;
}
AllyHero_SO[] heroes = Resources.LoadAll<AllyHero_SO>(string.Empty);
AllyHero_SO[] heroes = RuntimeResourcesCache.LoadAllAllyHeroes();
List<AllyHero_SO> candidates = new List<AllyHero_SO>();
for (int i = 0; i < heroes.Length; i++)
{