UI HUGE UPDATE
This commit is contained in:
@@ -15,8 +15,11 @@ public class ghPrefab : MonoBehaviour
|
||||
[Header("rank config")]
|
||||
public RankConfig rc;
|
||||
|
||||
private static readonly Color EarlySettlementColor = new Color32(204, 51, 51, 255);
|
||||
private static readonly Color BrightScoreColor = new Color32(124, 255, 107, 255);
|
||||
[Header("song score colors")]
|
||||
[SerializeField] private Color unreadableScoreColor = Color.black;
|
||||
[SerializeField] private Color earlySettlementScoreColor = new Color32(204, 51, 51, 255);
|
||||
[SerializeField] private Color normalReadableScoreColor = new Color32(124, 255, 107, 255);
|
||||
|
||||
private const string UnreadableText = "\u65e0\u6cd5\u8bfb\u53d6";
|
||||
|
||||
public void Setup(RecentPlayRecord record, SongData songData)
|
||||
@@ -59,18 +62,18 @@ public class ghPrefab : MonoBehaviour
|
||||
if (!record.scoreReadable)
|
||||
{
|
||||
songScore.text = UnreadableText;
|
||||
songScore.color = Color.black;
|
||||
songScore.color = unreadableScoreColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
songScore.text = record.totalScore.ToString();
|
||||
if (record.wasEarlySettlement)
|
||||
{
|
||||
songScore.color = EarlySettlementColor;
|
||||
songScore.color = earlySettlementScoreColor;
|
||||
}
|
||||
else
|
||||
{
|
||||
songScore.color = BrightScoreColor;
|
||||
songScore.color = normalReadableScoreColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -104,7 +107,7 @@ public class ghPrefab : MonoBehaviour
|
||||
if (songScore != null)
|
||||
{
|
||||
songScore.text = UnreadableText;
|
||||
songScore.color = Color.black;
|
||||
songScore.color = unreadableScoreColor;
|
||||
}
|
||||
|
||||
if (songRankImg != null)
|
||||
|
||||
Reference in New Issue
Block a user