好多新内容
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user