Update colors for some specific status/error messages
authorLiza Carvelli <liza@carvel.li>
Thu, 23 Jan 2025 00:43:09 +0000 (01:43 +0100)
committerLiza Carvelli <liza@carvel.li>
Thu, 23 Jan 2025 00:43:20 +0000 (01:43 +0100)
Questionable/Controller/MiniTaskController.cs
Questionable/Controller/QuestController.cs
Questionable/Controller/Steps/Interactions/AetherCurrent.cs
Questionable/Controller/Steps/Interactions/EquipRecommended.cs
Questionable/Controller/Steps/Shared/AetheryteShortcut.cs

index c9aec197ccec489ec09a4912f8c25b228017fab7..949c19153037dac38afa98dcdca0960f9333c924 100644 (file)
@@ -68,7 +68,7 @@ internal abstract class MiniTaskController<T> : IDisposable
                 {
                     _logger.LogError(e, "Failed to start task {TaskName}", upcomingTask.ToString());
                     _chatGui.PrintError(
-                        $"[Questionable] Failed to start task '{upcomingTask}', please check /xllog for details.");
+                        $"Failed to start task '{upcomingTask}', please check /xllog for details.", CommandHandler.MessageTag, CommandHandler.TagColor);
                     Stop("Task failed to start");
                     return;
                 }
@@ -93,7 +93,7 @@ internal abstract class MiniTaskController<T> : IDisposable
             _logger.LogError(e, "Failed to update task {TaskName}",
                 _taskQueue.CurrentTaskExecutor.CurrentTask.ToString());
             _chatGui.PrintError(
-                $"[Questionable] Failed to update task '{_taskQueue.CurrentTaskExecutor.CurrentTask}', please check /xllog for details.");
+                $"Failed to update task '{_taskQueue.CurrentTaskExecutor.CurrentTask}', please check /xllog for details.", CommandHandler.MessageTag, CommandHandler.TagColor);
             Stop("Task failed to update");
             return;
         }
index d514f267be8e4d124c3c3f4bcc6d513eb4663621..2c522556e2beee415696813b2ff1bf8d54dc8c8b 100644 (file)
@@ -623,7 +623,7 @@ internal sealed class QuestController : MiniTaskController<QuestController>, IDi
         catch (Exception e)
         {
             _logger.LogError(e, "Failed to create tasks");
-            _chatGui.PrintError("[Questionable] Failed to start next task sequence, please check /xllog for details.");
+            _chatGui.PrintError("Failed to start next task sequence, please check /xllog for details.", CommandHandler.MessageTag, CommandHandler.TagColor);
             Stop("Tasks failed to create");
         }
     }
index 7632e574978c5cb5700cf85b2da4f148278c067c..7c1f6338714c4763ccc95933628ae28efd6320c6 100644 (file)
@@ -26,7 +26,8 @@ internal static class AetherCurrent
             if (!aetherCurrentData.IsValidAetherCurrent(step.TerritoryId, step.AetherCurrentId.Value))
             {
                 chatGui.PrintError(
-                    $"[Questionable] Aether current with id {step.AetherCurrentId} is referencing an invalid aether current, will skip attunement");
+                    $"Aether current with id {step.AetherCurrentId} is referencing an invalid aether current, will skip attunement",
+                    CommandHandler.MessageTag, CommandHandler.TagColor);
                 return null;
             }
 
index 295bb8cc1ef8d000da90a813e2165891455bf9f9..3e008cca5b2fefa2c1c639caff6d35b6b93ab037 100644 (file)
@@ -40,7 +40,8 @@ internal static class EquipRecommended
         public override string ToString() => "EquipRecommended";
     }
 
-    internal sealed unsafe class DoEquipRecommended(IClientState clientState, IChatGui chatGui, ICondition condition) : TaskExecutor<EquipTask>
+    internal sealed unsafe class DoEquipRecommended(IClientState clientState, IChatGui chatGui, ICondition condition)
+        : TaskExecutor<EquipTask>
     {
         private bool _equipped;
 
@@ -88,7 +89,7 @@ internal static class EquipRecommended
 
                 if (!isAllEquipped)
                 {
-                    chatGui.Print("Equipping recommended gear.", "Questionable");
+                    chatGui.Print("Equipping recommended gear.", CommandHandler.MessageTag, CommandHandler.TagColor);
                     recommendedEquipModule->EquipRecommendedGear();
                 }
 
index b2748b183626a2a848db9ec13b193d1b1ea36e3a..4a56e9296cbad381fb7f63c29ac907ce314a1d57 100644 (file)
@@ -201,7 +201,7 @@ internal static class AetheryteShortcut
 
             if (!aetheryteFunctions.IsAetheryteUnlocked(Task.TargetAetheryte))
             {
-                chatGui.PrintError($"[Questionable] Aetheryte {Task.TargetAetheryte} is not unlocked.");
+                chatGui.PrintError($"Aetheryte {Task.TargetAetheryte} is not unlocked.", CommandHandler.MessageTag, CommandHandler.TagColor);
                 throw new TaskException("Aetheryte is not unlocked");
             }
 
@@ -215,7 +215,7 @@ internal static class AetheryteShortcut
             }
             else
             {
-                chatGui.Print("[Questionable] Unable to teleport to aetheryte.");
+                chatGui.Print("Unable to teleport to aetheryte.", CommandHandler.MessageTag, CommandHandler.TagColor);
                 throw new TaskException("Unable to teleport to aetheryte");
             }
         }