Implement <item> and <flag> text preview

This commit is contained in:
Infi
2024-05-18 19:23:39 +02:00
parent c9383e5411
commit 31897251f7
31 changed files with 1695 additions and 3 deletions
+4 -1
View File
@@ -532,6 +532,7 @@ public sealed class ChatLogWindow : Window
var chunks = ChunkUtil.ToChunks(SeString.Parse(bytes), ChunkSource.Content, ChatType.Say).ToList();
PreviewMessage = Message.FakeMessage(chunks, new ChatCode((ushort)XivChatType.Say));
PreviewMessage.DecodeTextParam();
}
var pos = ImGui.GetCursorPos();
@@ -564,7 +565,9 @@ public sealed class ChatLogWindow : Window
using (ImRaii.PushStyle(ImGuiStyleVar.ItemSpacing, Vector2.Zero))
{
ImGui.TextUnformatted("Text Preview:");
DrawChunks(PreviewMessage.Content);
var handler = HandlerLender.Borrow();
DrawChunks(PreviewMessage.Content, true, handler);
handler.Draw();
}
}