Use colors instead of quotes for item names in chat feedback
This commit is contained in:
parent
b0b430795d
commit
a5d28dd124
@ -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));
|
||||||
}
|
}
|
||||||
|
@ -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."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user