# HG changeset patch # User Jason Maltzen # Date 2018-05-18 18:06:20 # Node ID 50bbf52335750c60b4ecb38602218d6d2f8ef4c4 # Parent 0b17df70395df2bf7b69194d326f722390c8e055 Make the parameters to recipe generation more readable in code. diff --git a/UI/RecipeGeneratorView.cs b/UI/RecipeGeneratorView.cs --- a/UI/RecipeGeneratorView.cs +++ b/UI/RecipeGeneratorView.cs @@ -462,7 +462,18 @@ namespace DesertPaintLab Started(this, null); } - generator.BeginRecipeGeneration((uint)(checkButtonRibbon.Active ? PaintRecipe.RIBBON_RECIPE_MIN_CONCENTRATION : PaintRecipe.PAINT_RECIPE_MIN_CONCENTRATION), (uint)maxRecipeSpinButton.ValueAsInt, (uint)minIngredientsSpinButton.Value, (uint)maxIngredientsSpinButton.ValueAsInt, (uint)fullQuantityDepthSpinButton.ValueAsInt, (uint)fullQuantitySpinButton.ValueAsInt); + uint minConcentration = (uint)(checkButtonRibbon.Active ? PaintRecipe.RIBBON_RECIPE_MIN_CONCENTRATION : PaintRecipe.PAINT_RECIPE_MIN_CONCENTRATION); + uint maxConcentration = (uint)maxRecipeSpinButton.ValueAsInt; + uint minIngredients = (uint)minIngredientsSpinButton.Value; + uint maxIngredients = (uint)maxIngredientsSpinButton.ValueAsInt; + uint fullQuantityDepth = (uint)fullQuantityDepthSpinButton.ValueAsInt; + uint fullQuantity = (uint)fullQuantitySpinButton.ValueAsInt; + generator.BeginRecipeGeneration(minConcentration, + maxConcentration, + minIngredients, + maxIngredients, + fullQuantityDepth, + fullQuantity); } protected void OnStopResume(object sender, EventArgs e)