From: Liza Carvelli Date: Mon, 31 Mar 2025 12:09:54 +0000 (+0200) Subject: Revert RSR changes X-Git-Tag: v5.1~1 X-Git-Url: https://git.jacobcasper.com/?a=commitdiff_plain;h=b34caee5db650f3f43ad63871e714d7e2008baee;p=Questionable.git Revert RSR changes --- diff --git a/Questionable/Windows/ConfigComponents/GeneralConfigComponent.cs b/Questionable/Windows/ConfigComponents/GeneralConfigComponent.cs index 24789209..743ea7a9 100644 --- a/Questionable/Windows/ConfigComponents/GeneralConfigComponent.cs +++ b/Questionable/Windows/ConfigComponents/GeneralConfigComponent.cs @@ -1,9 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; -using Dalamud.Interface; using Dalamud.Interface.Colors; -using Dalamud.Interface.Components; using Dalamud.Interface.Utility.Raii; using Dalamud.Plugin; using Dalamud.Plugin.Services; @@ -33,8 +31,6 @@ internal sealed class GeneralConfigComponent : ConfigComponent private readonly EClassJob[] _classJobIds; private readonly string[] _classJobNames; - private Configuration.ECombatModule? _pendingCombatModule; - public GeneralConfigComponent( IDalamudPluginInterface pluginInterface, Configuration configuration, @@ -73,7 +69,13 @@ internal sealed class GeneralConfigComponent : ConfigComponent using (ImRaii.Disabled(_combatController.IsRunning)) { - DrawCombatModule(); + int selectedCombatModule = (int)Configuration.General.CombatModule; + if (ImGui.Combo("Preferred Combat Module", ref selectedCombatModule, _combatModuleNames, + _combatModuleNames.Length)) + { + Configuration.General.CombatModule = (Configuration.ECombatModule)selectedCombatModule; + Save(); + } } int selectedMount = Array.FindIndex(_mountIds, x => x == Configuration.General.MountId); @@ -142,70 +144,4 @@ internal sealed class GeneralConfigComponent : ConfigComponent Save(); } } - - private void DrawCombatModule() - { - using (_ = ImRaii.Disabled(_pendingCombatModule != null)) - { - int selectedCombatModule = (int)Configuration.General.CombatModule; - if (ImGui.Combo("Preferred Combat Module", ref selectedCombatModule, _combatModuleNames, - _combatModuleNames.Length)) - { - if (selectedCombatModule == (int)Configuration.ECombatModule.RotationSolverReborn) - { - Configuration.General.CombatModule = Configuration.ECombatModule.None; - _pendingCombatModule = Configuration.ECombatModule.RotationSolverReborn; - } - else - { - Configuration.General.CombatModule = (Configuration.ECombatModule)selectedCombatModule; - _pendingCombatModule = null; - } - Save(); - } - - if (Configuration.General.CombatModule == Configuration.ECombatModule.RotationSolverReborn) - { - ImGuiComponents.HelpMarker("The 'Rotation Solver Reborn' module will be removed in Patch 7.3.", FontAwesomeIcon.ExclamationTriangle, ImGuiColors.DalamudYellow); - } - } - - if (_pendingCombatModule == null) - return; - - using var indent = ImRaii.PushIndent(); - - ImGui.TextColored(ImGuiColors.DalamudYellow, "The 'Rotation Solver Reborn' module is unsupported, obsolete and will be removed in Patch 7.3."); - ImGui.Text("According to the RSR development team, RSR is not meant to run without human inputs/automatically/as a bot."); - ImGui.Text("Additionally, they have considered disabling RSR if it detects that Questionable is installed."); - ImGui.Text("Please consider switching to 'Wrath Combo' or 'Boss Mod (VBM)'."); - - if (ImGui.Button("Use 'Wrath Combo'")) - { - Configuration.General.CombatModule = Configuration.ECombatModule.WrathCombo; - _pendingCombatModule = null; - Save(); - } - - ImGui.SameLine(); - - if (ImGui.Button("Use 'Boss Mod (VBM)'")) - { - Configuration.General.CombatModule = Configuration.ECombatModule.BossMod; - _pendingCombatModule = null; - Save(); - } - - ImGui.SameLine(); - - if (ImGui.Button("Use 'Rotation Solver Reborn'")) - { - Configuration.General.CombatModule = Configuration.ECombatModule.RotationSolverReborn; - _pendingCombatModule = null; - Save(); - } - - - ImGui.Separator(); - } } diff --git a/Questionable/Windows/OneTimeSetupWindow.cs b/Questionable/Windows/OneTimeSetupWindow.cs index 5d4b864f..128a2f1a 100644 --- a/Questionable/Windows/OneTimeSetupWindow.cs +++ b/Questionable/Windows/OneTimeSetupWindow.cs @@ -62,6 +62,15 @@ internal sealed class OneTimeSetupWindow : LWindow new Uri("https://github.com/PunishXIV/WrathCombo"), new Uri("https://puni.sh/api/plugins")) }, + { + Configuration.ECombatModule.RotationSolverReborn, + new("Rotation Solver Reborn", + "RotationSolver", + string.Empty, + new Uri("https://github.com/FFXIV-CombatReborn/RotationSolverReborn"), + new Uri( + "https://raw.githubusercontent.com/FFXIV-CombatReborn/CombatRebornRepo/main/pluginmaster.json")) + }, }.AsReadOnly(); private readonly IReadOnlyList _recommendedPlugins; @@ -143,6 +152,7 @@ internal sealed class OneTimeSetupWindow : LWindow DrawCombatPlugin(Configuration.ECombatModule.BossMod, checklistPadding); DrawCombatPlugin(Configuration.ECombatModule.WrathCombo, checklistPadding); + DrawCombatPlugin(Configuration.ECombatModule.RotationSolverReborn, checklistPadding); } ImGui.Spacing();