Resolve WES-166 "Activity endscene"

This commit is contained in:
Jelle De Geest
2023-05-14 10:58:43 +00:00
committed by Louis Adriaens
parent 1e09f09dae
commit 9b88537d70
21 changed files with 9752 additions and 4005 deletions

View File

@@ -100,7 +100,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 +108,7 @@ public abstract class AbstractGameEndedPanel : MonoBehaviour
}
else
{
formatted = "now";
formatted = "nu";
}
entry.transform.Find("Ago").GetComponent<TMP_Text>().text = formatted;
@@ -125,7 +125,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++;