Resolve WES-166 "Activity endscene"
This commit is contained in:
committed by
Louis Adriaens
parent
1e09f09dae
commit
9b88537d70
@@ -72,7 +72,7 @@ public class ChangeUserScreen : MonoBehaviour
|
||||
Image background = instance.GetComponent<Image>();
|
||||
userBackgrounds.Add(background);
|
||||
// Set background color
|
||||
background.color = i == currentUserIndex ? Color.blue : Color.gray;
|
||||
background.color = i == currentUserIndex ? new Color(66 / 255f, 158 / 255f, 189 / 255f, 1f) : Color.gray;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ public class ChangeUserScreen : MonoBehaviour
|
||||
{
|
||||
userBackgrounds[currentUserIndex].color = Color.gray;
|
||||
currentUserIndex = index;
|
||||
userBackgrounds[currentUserIndex].color = Color.blue;
|
||||
userBackgrounds[currentUserIndex].color = new Color(66 / 255f, 158 / 255f, 189 / 255f, 1f);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -109,7 +109,7 @@ public class PanelCourseProgress : MonoBehaviour
|
||||
{
|
||||
courseCards[selectedCourse].Item1.color = Color.gray;
|
||||
selectedCourse = newCourse;
|
||||
courseCards[selectedCourse].Item1.color = Color.blue;
|
||||
courseCards[selectedCourse].Item1.color = new Color(66 / 255f, 158 / 255f, 189 / 255f, 1f);
|
||||
|
||||
var progress = user.GetCourseProgress(courseCards[selectedCourse].Item2);
|
||||
var course = courseList.GetCourseByIndex(progress.courseIndex);
|
||||
|
||||
@@ -105,7 +105,7 @@ public class PanelMinigameProgress : MonoBehaviour
|
||||
{
|
||||
minigameCards[selectedMinigame].Item1.color = Color.gray;
|
||||
selectedMinigame = newMinigame;
|
||||
minigameCards[selectedMinigame].Item1.color = Color.blue;
|
||||
minigameCards[selectedMinigame].Item1.color = new Color(66 / 255f, 158 / 255f, 189 / 255f, 1f);
|
||||
|
||||
var progress = user.GetMinigameProgress(minigameCards[selectedMinigame].Item2);
|
||||
minigameTitle.text = minigameList.GetMinigameByIndex(progress.minigameIndex).title;
|
||||
|
||||
@@ -64,7 +64,7 @@ public class UserProgressScreen : MonoBehaviour
|
||||
public void DisplayCourses()
|
||||
{
|
||||
coursesPanel.SetActive(true);
|
||||
coursesTabButton.color = Color.blue;
|
||||
coursesTabButton.color = new Color(66 / 255f, 158 / 255f, 189 / 255f, 1f);
|
||||
minigamesPanel.SetActive(false);
|
||||
minigamesTabButton.color = Color.gray;
|
||||
}
|
||||
@@ -77,6 +77,6 @@ public class UserProgressScreen : MonoBehaviour
|
||||
coursesPanel.SetActive(false);
|
||||
coursesTabButton.color = Color.gray;
|
||||
minigamesPanel.SetActive(true);
|
||||
minigamesTabButton.color = Color.blue;
|
||||
minigamesTabButton.color = new Color(66 / 255f, 158 / 255f, 189 / 255f, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user