Synthesis helper config options
This commit is contained in:
@@ -62,6 +62,8 @@ public class Configuration : IPluginConfiguration
|
|||||||
public SolverConfig SolverConfig { get; set; } = new();
|
public SolverConfig SolverConfig { get; set; } = new();
|
||||||
public SolverAlgorithm SolverAlgorithm { get; set; } = SolverAlgorithm.StepwiseFurcated;
|
public SolverAlgorithm SolverAlgorithm { get; set; } = SolverAlgorithm.StepwiseFurcated;
|
||||||
public bool ConditionRandomness { get; set; } = true;
|
public bool ConditionRandomness { get; set; } = true;
|
||||||
|
public bool EnableSynthesisHelper { get; set; } = true;
|
||||||
|
public int SynthesisHelperStepCount { get; set; } = 5;
|
||||||
|
|
||||||
public Simulator.Simulator CreateSimulator(SimulationState state) =>
|
public Simulator.Simulator CreateSimulator(SimulationState state) =>
|
||||||
ConditionRandomness ?
|
ConditionRandomness ?
|
||||||
|
|||||||
@@ -116,6 +116,26 @@ public class Settings : Window
|
|||||||
ref isDirty
|
ref isDirty
|
||||||
);
|
);
|
||||||
|
|
||||||
|
DrawOption(
|
||||||
|
"Enable Synthesis Helper",
|
||||||
|
"Adds a helper next to your synthesis window to help solve for the best craft.\n" +
|
||||||
|
"Extremely useful for expert recipes, where the condition can greatly affect\n" +
|
||||||
|
"which actions you take.",
|
||||||
|
Config.EnableSynthesisHelper,
|
||||||
|
v => Config.EnableSynthesisHelper = v,
|
||||||
|
ref isDirty
|
||||||
|
);
|
||||||
|
|
||||||
|
ImGui.BeginDisabled(!Config.EnableSynthesisHelper);
|
||||||
|
DrawOption(
|
||||||
|
"Synthesis Helper Step Count",
|
||||||
|
"The number of future actions to solve for during an in-game craft.",
|
||||||
|
Config.SynthesisHelperStepCount,
|
||||||
|
v => Config.SynthesisHelperStepCount = v,
|
||||||
|
ref isDirty
|
||||||
|
);
|
||||||
|
ImGui.EndDisabled();
|
||||||
|
|
||||||
ImGuiUtils.EndGroupPanel();
|
ImGuiUtils.EndGroupPanel();
|
||||||
|
|
||||||
ImGuiUtils.BeginGroupPanel("Solver");
|
ImGuiUtils.BeginGroupPanel("Solver");
|
||||||
|
|||||||
Reference in New Issue
Block a user