Populate adventurer CV
This commit is contained in:
1 parent
a00e4a6e98
commit
41b28e9efe
4 files changed
+299
-281
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user