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

Commit

Permalink
fix: add show toggle action in chat option.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Nov 10, 2023
1 parent 7d95289 commit c49208f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RotationSolver.Basic/Configuration/Configs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ public enum PluginConfigBool : byte

[Default(false)] UseAdditionalConditions,
[Default(false)] OnlyHealSelfWhenNoHealer,

[Default(true)] ShowToggledActionInChat,

}

public enum PluginConfigFloat : byte
Expand Down
5 changes: 5 additions & 0 deletions RotationSolver/Commands/RSCommands_OtherCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ private static void ToggleActionCommand(string str)

act.IsEnabled = bool.TryParse(flag, out var parse) ? parse : !act.IsEnabled;

if (Service.Config.GetValue(PluginConfigBool.ShowToggledActionInChat))
{
Svc.Chat.Print($"Toggled {act.Name} : {act.IsEnabled}");
}

return;
}
}
Expand Down
1 change: 1 addition & 0 deletions RotationSolver/Localization/ConfigTranslation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ internal static class ConfigTranslation
PluginConfigBool.ShowInfoOnDtr => LocalizationManager.RightLang.ConfigWindow_Param_ShowInfoOnDtr,
PluginConfigBool.ShowInfoOnToast => LocalizationManager.RightLang.ConfigWindow_Param_ShowInfoOnToast,
PluginConfigBool.ShowToastsAboutDoAction => LocalizationManager.RightLang.ConfigWindow_Param_ShowToastsAboutDoAction,
PluginConfigBool.ShowToggledActionInChat => LocalizationManager.RightLang.ConfigWindow_Param_ShowToggledActionInChat,
PluginConfigBool.OnlyShowWithHostileOrInDuty => LocalizationManager.RightLang.ConfigWindow_Control_OnlyShowWithHostileOrInDuty,
PluginConfigBool.ShowNextActionWindow => LocalizationManager.RightLang.ConfigWindow_Control_ShowNextActionWindow,
PluginConfigBool.ShowCooldownWindow => LocalizationManager.RightLang.ConfigWindow_Control_ShowCooldownWindow,
Expand Down
1 change: 1 addition & 0 deletions RotationSolver/Localization/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ internal class Strings
public string ConfigWindow_Param_ShowInfoOnDtr { get; set; } = "Display plugin status on server info";
public string ConfigWindow_Param_ShowInfoOnToast { get; set; } = "Display plugin status on toast";
public string ConfigWindow_Param_ShowToastsAboutDoAction { get; set; } = "Display do action feedback on toast";
public string ConfigWindow_Param_ShowToggledActionInChat { get; set; } = "Display toggle action feedback on chat";
public string ConfigWindow_Param_UseAOEAction { get; set; } = "Use AoE actions";

public string ConfigWindow_Param_UseAOEWhenManual { get; set; } = "Use AoE actions in manual mode";
Expand Down
1 change: 1 addition & 0 deletions RotationSolver/UI/RotationConfigWindow_Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ private static void DrawUI()
new CheckBoxSearchPlugin(PluginConfigBool.ShowInfoOnToast),

new CheckBoxSearchPlugin(PluginConfigBool.ShowToastsAboutDoAction),
new CheckBoxSearchPlugin(PluginConfigBool.ShowToggledActionInChat),

new CheckBoxSearchPlugin(PluginConfigBool.KeyBoardNoise,
new DragIntRangeSearchPlugin(PluginConfigInt.KeyBoardNoiseMin, PluginConfigInt.KeyBoardNoiseMax, 1)),
Expand Down

0 comments on commit c49208f

Please sign in to comment.