private void RefreshIngredientAvailabilityVis()
 {
     foreach (KeyValuePair <GameObject, ComplexRecipe> item in recipeMap)
     {
         HierarchyReferences component = item.Key.GetComponent <HierarchyReferences>();
         bool    flag       = HasAllRecipeRequirements(item.Value);
         KToggle component2 = item.Key.GetComponent <KToggle>();
         if (flag)
         {
             if (selectedRecipe == item.Value)
             {
                 component2.ActivateFlourish(true, ImageToggleState.State.Active);
             }
             else
             {
                 component2.ActivateFlourish(false, ImageToggleState.State.Inactive);
             }
         }
         else if (selectedRecipe == item.Value)
         {
             component2.ActivateFlourish(true, ImageToggleState.State.DisabledActive);
         }
         else
         {
             component2.ActivateFlourish(false, ImageToggleState.State.Disabled);
         }
         component.GetReference <LocText>("Label").color = ((!flag) ? new Color(0.22f, 0.22f, 0.22f, 1f) : Color.black);
     }
 }