Remove combo actions from view

This commit is contained in:
Asriel Camora
2023-07-15 23:54:26 +04:00
parent 88babd3844
commit 8417ee4fc5
3 changed files with 1 additions and 12 deletions
-1
View File
@@ -31,7 +31,6 @@ public class Configuration : IPluginConfiguration
public bool OverrideUncraftability { get; set; } = true;
public bool HideUnlearnedActions { get; set; } = true;
public bool HideCombos { get; set; } = true;
public List<Macro> Macros { get; set; } = new();
public SolverConfig SolverConfig { get; set; } = new();
public SolverAlgorithm SolverAlgorithm { get; set; } = SolverAlgorithm.StepwiseFurcated;
-8
View File
@@ -106,14 +106,6 @@ public class SettingsWindow : Window
ref isDirty
);
DrawOption(
"Hide combo actions",
"Don't show combo actions on the simulator sidebar",
Config.HideCombos,
v => Config.HideCombos = v,
ref isDirty
);
DrawOption(
"Condition randomness",
"Allows the simulator condition to fluctuate randomly like a real craft.\nTurns off when generating a macro.",
+1 -3
View File
@@ -39,6 +39,7 @@ public sealed partial class SimulatorWindow : Window, IDisposable
static SimulatorWindow()
{
SortedActions = Enum.GetValues<ActionType>()
.Where(a => a.Category() != ActionCategory.Combo)
.GroupBy(a => a.Category())
.Select(g => (g.Key, g.OrderBy(a => a.Level()).ToArray()))
.ToArray();
@@ -78,9 +79,6 @@ public sealed partial class SimulatorWindow : Window, IDisposable
foreach (var (category, actions) in SortedActions)
{
if (category == ActionCategory.Combo && Configuration.HideCombos)
continue;
var i = 0;
ImGuiUtils.BeginGroupPanel(category.GetDisplayName(), ActionColumnSize);
foreach (var action in actions)