Use colors instead of quotes for item names in chat feedback

This commit is contained in:
Liza 2023-10-11 10:12:01 +02:00
parent b0b430795d
commit a5d28dd124
Signed by: liza
GPG Key ID: 7199F8D727D55F67
3 changed files with 16 additions and 6 deletions

View File

@ -40,7 +40,8 @@ public class AutoDiscardPlogon : IDalamudPlugin
private DateTime _cancelDiscardAfter = DateTime.MaxValue; private DateTime _cancelDiscardAfter = DateTime.MaxValue;
public AutoDiscardPlogon(DalamudPluginInterface pluginInterface, ICommandManager commandManager, IChatGui chatGui, public AutoDiscardPlogon(DalamudPluginInterface pluginInterface, ICommandManager commandManager, IChatGui chatGui,
IDataManager dataManager, IClientState clientState, ICondition condition, IPluginLog pluginLog, IGameGui gameGui) IDataManager dataManager, IClientState clientState, ICondition condition, IPluginLog pluginLog,
IGameGui gameGui)
{ {
ItemCache itemCache = new ItemCache(dataManager); ItemCache itemCache = new ItemCache(dataManager);
@ -231,7 +232,8 @@ public class AutoDiscardPlogon : IDalamudPlugin
} }
else else
{ {
_pluginLog.Information($"ContinueAfterDiscard: Waiting for server response until {_cancelDiscardAfter}"); _pluginLog.Information(
$"ContinueAfterDiscard: Waiting for server response until {_cancelDiscardAfter}");
_taskManager.DelayNext(20); _taskManager.DelayNext(20);
_taskManager.Enqueue(() => ContinueAfterDiscard(type, itemFilter, inventoryType, slot)); _taskManager.Enqueue(() => ContinueAfterDiscard(type, itemFilter, inventoryType, slot));
} }

View File

@ -82,7 +82,11 @@ internal sealed class ContextMenuIntegration : IDisposable
_chatGui.Print(new SeString(new UIForegroundPayload(52)) _chatGui.Print(new SeString(new UIForegroundPayload(52))
.Append($"\ue05f ") .Append($"\ue05f ")
.Append(new UIForegroundPayload(0)) .Append(new UIForegroundPayload(0))
.Append($"Added '{_itemCache.GetItemName(args.ItemId)}' to Auto Discard List.")); .Append($"Added ")
.Append(new UIForegroundPayload(52))
.Append(_itemCache.GetItemName(args.ItemId))
.Append(new UIForegroundPayload(0))
.Append(" to Auto Discard List."));
} }
} }
@ -93,7 +97,11 @@ internal sealed class ContextMenuIntegration : IDisposable
_chatGui.Print(new SeString(new UIForegroundPayload(52)) _chatGui.Print(new SeString(new UIForegroundPayload(52))
.Append($"\ue05f ") .Append($"\ue05f ")
.Append(new UIForegroundPayload(0)) .Append(new UIForegroundPayload(0))
.Append($"Removed '{_itemCache.GetItemName(args.ItemId)}' from Auto Discard List.")); .Append($"Removed ")
.Append(new UIForegroundPayload(52))
.Append(_itemCache.GetItemName(args.ItemId))
.Append(new UIForegroundPayload(0))
.Append(" from Auto Discard List."));
} }
} }