Exemple #1
0
 public override void RefreshView()
 {
     this.UpdateMembers();
     if (Service.SquadController.WarManager.MatchMakingPrepMode)
     {
         this.groupStartWarBtns.Visible = true;
         this.memberPanel.SetPanelUnifiedAnchorBottomOffset(120);
         SquadController squadController = Service.SquadController;
         SquadWarManager warManager      = squadController.WarManager;
         int             warPartyCount   = warManager.GetWarPartyCount();
         this.labelStartWarSelected.Text = this.lang.Get("WAR_MEMBERS_SELECTED", new object[]
         {
             warPartyCount,
             GameConstants.WAR_PARTICIPANT_COUNT
         });
         if (warPartyCount < GameConstants.WAR_PARTICIPANT_COUNT)
         {
             this.btnStartWarConfirm.Enabled = false;
             this.btnStartWarConfirm.VisuallyDisableButton();
         }
         else
         {
             this.btnStartWarConfirm.Enabled = true;
             this.btnStartWarConfirm.VisuallyEnableButton();
         }
     }
     else
     {
         this.groupStartWarBtns.Visible = false;
         this.memberPanel.SetPanelUnifiedAnchorBottomOffset(15);
     }
 }