Update colors for some specific status/error messages
This commit is contained in:
parent
4e427e4309
commit
4f61ea45ed
@ -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;
|
||||
}
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user