menu
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.RhythmGame;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
@@ -13,6 +14,8 @@ namespace Ichni.Menu.UI
|
||||
public TMP_Text illustratorText;
|
||||
|
||||
public TMP_Text accuracyText;
|
||||
public Image fullComboMark;
|
||||
public Image allPerfectMark;
|
||||
|
||||
public void SetIllustration(Sprite cover, string illustratorName)
|
||||
{
|
||||
@@ -24,5 +27,17 @@ namespace Ichni.Menu.UI
|
||||
{
|
||||
charterNameText.text = charterName == string.Empty ? "Unknown Charter" : charterName;
|
||||
}
|
||||
|
||||
public void SetBeatmapInfo(BeatmapSave beatmapSave)
|
||||
{
|
||||
accuracyText.text = $"{beatmapSave.accuracy * 100:F2}%";
|
||||
|
||||
if (!beatmapSave.isAllPerfect)
|
||||
{
|
||||
fullComboMark.gameObject.SetActive(beatmapSave.isFullCombo);
|
||||
}
|
||||
|
||||
allPerfectMark.gameObject.SetActive(beatmapSave.isAllPerfect);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user