Remove condition randomness in settings window

This commit is contained in:
Asriel Camora
2023-11-14 00:53:14 -08:00
parent 466d7ab508
commit fc62e8ae1b
2 changed files with 3 additions and 20 deletions
+3 -1
View File
@@ -1217,7 +1217,9 @@ public sealed class MacroEditor : Window, IDisposable
} }
} }
if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled)) if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))
ImGui.SetTooltip("Condition Randomness"); ImGui.SetTooltip("Condition Randomness\n" +
"Allows the condition to fluctuate randomly like a real craft.\n" +
"Turns off when generating a macro.");
} }
else else
{ {
-19
View File
@@ -641,25 +641,6 @@ public sealed class Settings : Window, IDisposable
var isDirty = false; var isDirty = false;
using (var g = ImRaii.Group())
{
using var d = ImRaii.Disabled();
DrawOption(
"Condition Randomness",
"Allows the simulator condition to fluctuate randomly like a real craft.\n" +
"Turns off when generating a macro.",
Config.ConditionRandomness,
v => Config.ConditionRandomness = v,
ref isDirty
);
}
if (ImGui.IsItemHovered())
ImGui.SetTooltip("Disabled temporarily for testing");
ImGuiHelpers.ScaledDummy(5);
ImGui.Separator();
ImGuiHelpers.ScaledDummy(5);
var solverConfig = Config.SimulatorSolverConfig; var solverConfig = Config.SimulatorSolverConfig;
DrawSolverConfig(ref solverConfig, SolverConfig.SimulatorDefault, out var isSolverDirty); DrawSolverConfig(ref solverConfig, SolverConfig.SimulatorDefault, out var isSolverDirty);
if (isSolverDirty) if (isSolverDirty)