Example #1
0
    public void Init(AchievementsUI ui, Achievement achievement)
    {
        this.ui          = ui;
        this.achievement = achievement;
        image.sprite     = achievement.image;
        Color c = Color.white;

        if (achievement.ready)
        {
            ready.gameObject.SetActive(true);
            unready.gameObject.SetActive(false);
            c.a         = 1;
            image.color = c;
        }
        else
        {
            ready.gameObject.SetActive(false);
            unready.gameObject.SetActive(false);
            c.a         = 0.35f;
            image.color = c;
        }
    }
Example #2
0
 private void GoBackClick(UIMouseEvent evt, UIElement listeningElement)
 {
     Main.menuMode = 0;
     AchievementsUI.Close();
 }
Example #3
0
 public override void OnClick()
 {
     IngameOptions.Close();
     AchievementsUI.OpenAndGoto(_achievement);
 }