Sprint 6
This commit is contained in:
@@ -4,6 +4,7 @@ using System.Linq;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
/// <summary>
|
||||
/// Abstract class for all minigame-gameEndedPanels
|
||||
/// </summary>
|
||||
@@ -16,7 +17,7 @@ public abstract class AbstractGameEndedPanel : MonoBehaviour
|
||||
{
|
||||
get;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Reference to the scoreboard entries container
|
||||
/// </summary>
|
||||
@@ -100,7 +101,7 @@ public abstract class AbstractGameEndedPanel : MonoBehaviour
|
||||
}
|
||||
else if (diff.Hours > 0)
|
||||
{
|
||||
formatted = $"{diff.Hours}h ";
|
||||
formatted = $"{diff.Hours}u ";
|
||||
}
|
||||
else if (diff.Minutes > 0)
|
||||
{
|
||||
@@ -108,7 +109,7 @@ public abstract class AbstractGameEndedPanel : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
formatted = "now";
|
||||
formatted = "nu";
|
||||
}
|
||||
|
||||
entry.transform.Find("Ago").GetComponent<TMP_Text>().text = formatted;
|
||||
@@ -125,7 +126,10 @@ public abstract class AbstractGameEndedPanel : MonoBehaviour
|
||||
if (diff.TotalSeconds < 1)
|
||||
{
|
||||
Image image = entry.transform.GetComponent<Image>();
|
||||
image.color = new Color(0, 229, 255, 233);
|
||||
image.color = new Color(247 / 255f, 173 / 255f, 25 / 255f, 1f);
|
||||
entry.transform.Find("PlayerName").GetComponent<TMP_Text>().color = new Color(5 / 255f, 63 / 255f, 92 / 255f, 1f);
|
||||
entry.transform.Find("Score").GetComponent<TMP_Text>().color = new Color(5 / 255f, 63 / 255f, 92 / 255f, 1f);
|
||||
entry.transform.Find("Ago").GetComponent<TMP_Text>().color = new Color(5 / 255f, 63 / 255f, 92 / 255f, 1f);
|
||||
}
|
||||
|
||||
rank++;
|
||||
|
||||
Reference in New Issue
Block a user