Exemple #1
0
 protected override void UpdateView()
 {
     UXUtils.UpdateUplinkHelper(this.spritePoint1, this.participantState.VictoryPointsLeft >= 3, true);
     UXUtils.UpdateUplinkHelper(this.spritePoint2, this.participantState.VictoryPointsLeft >= 2, true);
     UXUtils.UpdateUplinkHelper(this.spritePoint3, this.participantState.VictoryPointsLeft >= 1, true);
     this.ToggleDisplay(this.internalDisplay);
 }
Exemple #2
0
 private void UpdateUplinkHelper(int index, bool active, string reqKey)
 {
     UXUtils.UpdateUplinkHelper(this.uplinks[index], active, false);
     if (active)
     {
         this.requirements[index].Text = this.lang.Get(reqKey, new object[0]);
     }
     else
     {
         this.requirements[index].Text = this.lang.Get("WAR_PLAYER_DETAILS_REQ_COMPLETE", new object[0]);
     }
     this.checks[index].Visible = !active;
     this.stars[index].Visible  = active;
 }