Add avatars and fix journal layout

This commit is contained in:
2023-07-09 15:29:26 +02:00
parent 82baf3db3c
commit e6ba085a1c
19 changed files with 756 additions and 22 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
public class Journal : MonoBehaviour
{
@@ -67,6 +68,7 @@ public class Journal : MonoBehaviour
{
CharacterData chara = m_availableAdventurers[id];
adventurerPage.Find("AdventurerName").gameObject.GetComponent<TMP_Text>().text = chara.name;
adventurerPage.Find("AdventurerAvatar").gameObject.GetComponent<Image>().sprite = chara.m_avatar;
string cv = "";
foreach (var line in chara.m_dialogueOptions)
{