好多新内容

This commit is contained in:
2026-07-22 05:35:53 +08:00
parent b5d1cdcbc5
commit 15649d02f8
128 changed files with 5956 additions and 673 deletions
+19
View File
@@ -326,6 +326,10 @@ public class UI_Idols : MonoBehaviour
SetObjectState(skillsObj, idolSkillsToggle != null && idolSkillsToggle.isOn);
SetObjectState(skinsObj, idolSkinsToggle != null && idolSkinsToggle.isOn);
SetObjectState(weaponObj, idolWeaponToggle != null && idolWeaponToggle.isOn);
if (detailPassageObj != null && detailPassageObj.activeSelf)
{
SyncCurrentHeroDocument();
}
PlayActiveSectionRefresh();
}
@@ -580,12 +584,27 @@ public class UI_Idols : MonoBehaviour
private void SetIdolDocumentText(string value)
{
EnsureIdolDocumentBinding();
if (ido != null && ido.idol_documentText != null)
{
ido.idol_documentText.text = value ?? string.Empty;
}
}
private void SyncCurrentHeroDocument()
{
SetIdolDocumentText(currentSelectedHero != null ? currentSelectedHero.ally_heroDescription : string.Empty);
ApplyBehaviourRadar(currentSelectedHero);
}
private void EnsureIdolDocumentBinding()
{
if (ido == null && detailPassageObj != null)
{
ido = detailPassageObj.GetComponentInChildren<idolDocument>(true);
}
}
private void ApplyHeroImage(Sprite sprite)
{
ApplyHeroImage(sprite, true);