perf
This commit is contained in:
28
Assets/Scripts/UI/SongSelection/SongInfoUI.cs
Normal file
28
Assets/Scripts/UI/SongSelection/SongInfoUI.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user