Ejemplo n.º 1
0
 void ToggleTweak(TweakList.Tweak tweak, TweakList.Tweak.States value)
 {
     if (value == TweakList.Tweak.States.Unsellected)
     {
         UndoTweak(tweak);
     }
     else
     {
         ApplyTweak(tweak, value != TweakList.Tweak.States.Sellected);
     }
 }
Ejemplo n.º 2
0
        void ToggleGroup(TweakPresets.Group group, TweakList.Tweak.States value, bool bOnlyRecommended = false)
        {
            foreach (TweakList.Tweak tweak in group.Tweaks.Values)
            {
                if (bOnlyRecommended && tweak.Hint != TweakList.Tweak.Hints.Recommended)
                {
                    continue;
                }
                if (value != TweakList.Tweak.States.Unsellected && tweak.Hint == TweakList.Tweak.Hints.Optional) // skip optional tweaks, thay are usually eider dangerouse or redundant
                {
                    continue;
                }

                ToggleTweak(tweak, value);
            }
        }