mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Fix duty pop chat message italics (#1697)
This commit is contained in:
parent
8a21fc721f
commit
2cdc1f0171
1 changed files with 7 additions and 3 deletions
|
|
@ -12,6 +12,7 @@ using Dalamud.Game.Gui;
|
|||
using Dalamud.Game.Network.Internal.MarketBoardUploaders;
|
||||
using Dalamud.Game.Network.Internal.MarketBoardUploaders.Universalis;
|
||||
using Dalamud.Game.Network.Structures;
|
||||
using Dalamud.Game.Text.SeStringHandling;
|
||||
using Dalamud.Hooking;
|
||||
using Dalamud.Networking.Http;
|
||||
using Dalamud.Utility;
|
||||
|
|
@ -268,8 +269,8 @@ internal unsafe class NetworkHandlers : IDisposable, IServiceType
|
|||
return result;
|
||||
}
|
||||
|
||||
var cfcName = cfCondition.Name.ToString();
|
||||
if (cfcName.IsNullOrEmpty())
|
||||
var cfcName = cfCondition.Name.ToDalamudString();
|
||||
if (cfcName.Payloads.Count == 0)
|
||||
{
|
||||
cfcName = "Duty Roulette";
|
||||
cfCondition.Image = 112324;
|
||||
|
|
@ -279,7 +280,10 @@ internal unsafe class NetworkHandlers : IDisposable, IServiceType
|
|||
{
|
||||
if (this.configuration.DutyFinderChatMessage)
|
||||
{
|
||||
Service<ChatGui>.GetNullable()?.Print($"Duty pop: {cfcName}");
|
||||
var b = new SeStringBuilder();
|
||||
b.Append("Duty pop: ");
|
||||
b.Append(cfcName);
|
||||
Service<ChatGui>.GetNullable()?.Print(b.Build());
|
||||
}
|
||||
|
||||
this.CfPop.InvokeSafely(cfCondition);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue