Update colors for some specific status/error messages

This commit is contained in:
Liza 2025-01-23 01:43:09 +01:00
parent 4e427e4309
commit 4f61ea45ed
Signed by: liza
GPG Key ID: 2C41B84815CF6445
5 changed files with 10 additions and 8 deletions

View 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;
}

View 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");
}
}

View 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;
}

View 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();
}

View 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");
}
}