From b14f1732dd3cbf08b8b5edc80ca93524878c75fb Mon Sep 17 00:00:00 2001 From: mopi <20108256+0xMOPI@users.noreply.github.com> Date: Fri, 26 Jul 2024 04:03:22 -0300 Subject: [PATCH] Get job icons from game --- ChatTwo/Ui/ChatLogWindow.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ChatTwo/Ui/ChatLogWindow.cs b/ChatTwo/Ui/ChatLogWindow.cs index b68a113..16a23e9 100644 --- a/ChatTwo/Ui/ChatLogWindow.cs +++ b/ChatTwo/Ui/ChatLogWindow.cs @@ -1,4 +1,4 @@ -using System.Diagnostics; +using System.Diagnostics; using System.Numerics; using System.Runtime.InteropServices; using System.Text; @@ -55,7 +55,7 @@ public sealed class ChatLogWindow : Window internal bool Activate; private int ActivatePos = -1; internal string Chat = string.Empty; - internal readonly IDalamudTextureWrap? FontIcon; + internal IDalamudTextureWrap? FontIcon; private readonly List InputBacklog = []; private int InputBacklogIdx = -1; private int LastTab { get; set; } @@ -119,7 +119,6 @@ public sealed class ChatLogWindow : Window WorldSheet = Plugin.DataManager.GetExcelSheet()!; LogFilterSheet = Plugin.DataManager.GetExcelSheet()!; TextCommandSheet = Plugin.DataManager.GetExcelSheet()!; - FontIcon = Plugin.TextureProvider.CreateFromTexFile(Plugin.DataManager.GetFile("common/font/fonticon_ps5.tex")!); Plugin.ClientState.Login += Login; Plugin.ClientState.Logout += Logout; @@ -498,6 +497,7 @@ public sealed class ChatLogWindow : Window { try { + FontIcon = Plugin.TextureProvider.GetFromGame("common/font/fonticon_ps5.tex").GetWrapOrDefault(); DrawChatLog(); AddPopOutsToDraw(); DrawAutoComplete();