Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
fix: add options about aoe usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 11, 2023
1 parent ec4a0e5 commit 35fdb0e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 0 additions & 2 deletions RotationSolver.Basic/Configuration/PluginConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ public class PluginConfiguration : IPluginConfiguration
public bool RaiseBrinkOfDeath = true;
public int LessMPNoRaise = 0;
public bool AddEnemyListToHostile = true;
public bool UseAOEWhenManual = false;
public bool UseAOEAction = true;
public bool UseItem = false;
public bool PositionalFeedback = true;
public bool DrawPositional = true;
Expand Down
4 changes: 4 additions & 0 deletions RotationSolver.Basic/Data/RSCommandType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public enum SettingsCommand : byte
AutoUseTrueNorth,
RaisePlayerBySwift,
UseGroundBeneficialAbility,
UseAOEAction,
UseAOEWhenManual,
}

public static class SettingsCommandExtension
Expand All @@ -58,6 +60,8 @@ public static class SettingsCommandExtension
SettingsCommand.AutoUseTrueNorth => true,
SettingsCommand.RaisePlayerBySwift => true,
SettingsCommand.UseGroundBeneficialAbility => true,
SettingsCommand.UseAOEAction => true,
SettingsCommand.UseAOEWhenManual => false,
_ => false,
};
}
6 changes: 3 additions & 3 deletions RotationSolver/UI/RotationConfigWindow_Param.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,12 @@ private void DrawParamDisplay()
private void DrawParamAction()
{
DrawCheckBox(LocalizationManager.RightLang.ConfigWindow_Param_UseAOEAction,
ref Service.Config.UseAOEAction, Service.Default.UseAOEAction);
SettingsCommand.UseAOEAction);

if(Service.Config.UseAOEAction)
if(Service.Config.GetValue(SettingsCommand.UseAOEAction))
{
DrawCheckBox(LocalizationManager.RightLang.ConfigWindow_Param_UseAOEWhenManual,
ref Service.Config.UseAOEWhenManual, Service.Default.UseAOEWhenManual);
SettingsCommand.UseAOEWhenManual);

DrawCheckBox(LocalizationManager.RightLang.ConfigWindow_Param_NoNewHostiles,
ref Service.Config.NoNewHostiles, Service.Default.NoNewHostiles,
Expand Down

0 comments on commit 35fdb0e

Please sign in to comment.