Remove combo actions from view
This commit is contained in:
@@ -31,7 +31,6 @@ public class Configuration : IPluginConfiguration
|
|||||||
|
|
||||||
public bool OverrideUncraftability { get; set; } = true;
|
public bool OverrideUncraftability { get; set; } = true;
|
||||||
public bool HideUnlearnedActions { get; set; } = true;
|
public bool HideUnlearnedActions { get; set; } = true;
|
||||||
public bool HideCombos { get; set; } = true;
|
|
||||||
public List<Macro> Macros { get; set; } = new();
|
public List<Macro> Macros { get; set; } = new();
|
||||||
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;
|
||||||
|
|||||||
@@ -106,14 +106,6 @@ public class SettingsWindow : Window
|
|||||||
ref isDirty
|
ref isDirty
|
||||||
);
|
);
|
||||||
|
|
||||||
DrawOption(
|
|
||||||
"Hide combo actions",
|
|
||||||
"Don't show combo actions on the simulator sidebar",
|
|
||||||
Config.HideCombos,
|
|
||||||
v => Config.HideCombos = v,
|
|
||||||
ref isDirty
|
|
||||||
);
|
|
||||||
|
|
||||||
DrawOption(
|
DrawOption(
|
||||||
"Condition randomness",
|
"Condition randomness",
|
||||||
"Allows the simulator condition to fluctuate randomly like a real craft.\nTurns off when generating a macro.",
|
"Allows the simulator condition to fluctuate randomly like a real craft.\nTurns off when generating a macro.",
|
||||||
|
|||||||
@@ -39,6 +39,7 @@ public sealed partial class SimulatorWindow : Window, IDisposable
|
|||||||
static SimulatorWindow()
|
static SimulatorWindow()
|
||||||
{
|
{
|
||||||
SortedActions = Enum.GetValues<ActionType>()
|
SortedActions = Enum.GetValues<ActionType>()
|
||||||
|
.Where(a => a.Category() != ActionCategory.Combo)
|
||||||
.GroupBy(a => a.Category())
|
.GroupBy(a => a.Category())
|
||||||
.Select(g => (g.Key, g.OrderBy(a => a.Level()).ToArray()))
|
.Select(g => (g.Key, g.OrderBy(a => a.Level()).ToArray()))
|
||||||
.ToArray();
|
.ToArray();
|
||||||
@@ -78,9 +79,6 @@ public sealed partial class SimulatorWindow : Window, IDisposable
|
|||||||
|
|
||||||
foreach (var (category, actions) in SortedActions)
|
foreach (var (category, actions) in SortedActions)
|
||||||
{
|
{
|
||||||
if (category == ActionCategory.Combo && Configuration.HideCombos)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
var i = 0;
|
var i = 0;
|
||||||
ImGuiUtils.BeginGroupPanel(category.GetDisplayName(), ActionColumnSize);
|
ImGuiUtils.BeginGroupPanel(category.GetDisplayName(), ActionColumnSize);
|
||||||
foreach (var action in actions)
|
foreach (var action in actions)
|
||||||
|
|||||||
Reference in New Issue
Block a user