Populate adventurer CV

This commit is contained in:
2023-07-09 12:25:06 +02:00
parent a00e4a6e98
commit 41b28e9efe
4 changed files with 299 additions and 281 deletions

View File

@@ -62,8 +62,14 @@ public class Journal : MonoBehaviour
public void SetJournalAdventurerPage(int id)
{
CharacterData chara = m_availableAdventurers[id];
TMP_Text nameLabel = adventurerPage.Find("AdventurerName").gameObject.GetComponent<TMP_Text>();
nameLabel.text = chara.m_name;
adventurerPage.Find("AdventurerName").gameObject.GetComponent<TMP_Text>().text = chara.name;
string cv = "";
foreach (var line in chara.m_dialogueOptions)
{
cv += $"- {line.bulletizedText}\n";
}
adventurerPage.Find("AdventurerCV").gameObject.GetComponent<TMP_Text>().text = cv;
}
public void SetJournalQuestPage()