28 lines
720 B
C#
28 lines
720 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Ichni.Menu.UI
|
|
{
|
|
public class SongInfoUI : MonoBehaviour
|
|
{
|
|
public Image illustration;
|
|
public TMP_Text charterNameText;
|
|
public TMP_Text illustratorText;
|
|
|
|
public TMP_Text accuracyText;
|
|
|
|
public void SetIllustration(Sprite cover, string illustratorName)
|
|
{
|
|
illustration.sprite = cover;
|
|
illustratorText.text = illustratorName;
|
|
}
|
|
|
|
public void SetCharter(string charterName)
|
|
{
|
|
charterNameText.text = charterName == string.Empty ? "Unknown Charter" : charterName;
|
|
}
|
|
}
|
|
} |