Exemple #1
0
 private void DeactivateThoseWhoRequireThis()
 {
     foreach (var button in mechMenu.buttons)
     {
         if (button.requirements.Contains(this.mechanicName))
         {
             if (mechanics.IsEnabled(button.mechanicName))
             {
                 DeactivateMechanic(button.mechanicName);
             }
         }
     }
 }
Exemple #2
0
 private void SetMoveSpeed()
 {
     moveSpeed = config.moveSpeed;
     if (mechanics.IsEnabled("Move Speed Boost"))
     {
         moveSpeed = config.moveSpeedBoosted;
     }
 }
Exemple #3
0
 public void RevertMechanics()
 {
     changedMechanics = false;
     mechanics.RestoreState();
     foreach (var button in buttons)
     {
         if (mechanics.IsEnabled(button.mechanicName))
         {
             button.ActivateButtonImage();
         }
         else
         {
             button.DeactivateButtonImage();
         }
     }
     UpdateButtonsState();
 }