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

Commit

Permalink
fix: fixed nextaction macro.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 25, 2023
1 parent cc532b7 commit 2b1e750
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions RotationSolver.Basic/Data/RSCommandType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ public enum OtherCommandType : byte
///
/// </summary>
ToggleActions,

/// <summary>
///
/// </summary>
NextAction,
}

/// <summary>
Expand Down
4 changes: 4 additions & 0 deletions RotationSolver/Commands/RSCommands_OtherCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ private static void DoOtherCommand(OtherCommandType otherType, string str)
case OtherCommandType.Settings:
DoSettingCommand(str);
break;

case OtherCommandType.NextAction:
DoAction();
break;
}
}

Expand Down
2 changes: 2 additions & 0 deletions RotationSolver/Localization/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ internal partial class Strings
public string ConfigWindow_HelpItem_AttackManual { get; set; }
= "Start the addon in manual mode. You need to choose the target manually. This will bypass any engage settings that you have set up and will start attacking immediately once something is targeted.";

public string ConfigWindow_HelpItem_NextAction { get; set; } = "Do the next action";

public string ConfigWindow_HelpItem_AttackCancel { get; set; }
= "Stop the addon. Always remember to turn it off when not in use!";

Expand Down
2 changes: 2 additions & 0 deletions RotationSolver/UI/RotationConfigWindow_Help.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ private static void DrawHelpTab()

StateCommandType.Cancel.DisplayCommandHelp(getHelp: EnumTranslations.ToHelp);

OtherCommandType.NextAction.DisplayCommandHelp(getHelp: i => LocalizationManager.RightLang.ConfigWindow_HelpItem_NextAction);

ImGui.Separator();

SpecialCommandType.EndSpecial.DisplayCommandHelp(getHelp: EnumTranslations.ToHelp);
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver/Updaters/InputUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private static void KeyDown(KeyRecord key)
}
else if(OtherConfiguration.InputConfig.KeyDoAction == key)
{
RSCommands.DoAction();
Svc.Commands.ProcessCommand(OtherCommandType.NextAction.GetCommandStr());
}
}

Expand Down
4 changes: 2 additions & 2 deletions RotationSolver/Updaters/MajorUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ private unsafe static void FrameworkUpdate(Framework framework)
}

MacroUpdater.UpdateMacro();

InputUpdater.UpdateCommand();
}
catch (Exception ex)
{
Expand Down Expand Up @@ -157,6 +155,8 @@ private static void UpdateWork()
ActionUpdater.UpdateNextAction();

RSCommands.UpdateRotationState();

InputUpdater.UpdateCommand();
}
catch (Exception ex)
{
Expand Down

0 comments on commit 2b1e750

Please sign in to comment.