Fixed Sestring font + offset

This commit is contained in:
defnotken
2025-12-17 23:19:18 -06:00
parent 6d57813ef2
commit 5e2afc8bfe

View File

@@ -545,12 +545,15 @@ public static class SeStringUtils
{
drawList ??= ImGui.GetWindowDrawList();
var usedFont = font ?? ImGui.GetFont();
var drawParams = new SeStringDrawParams
{
Font = font ?? ImGui.GetFont(),
Font = usedFont,
FontSize = usedFont.FontSize,
Color = ImGui.GetColorU32(ImGuiCol.Text),
WrapWidth = wrapWidth,
TargetDrawList = drawList
TargetDrawList = drawList,
ScreenOffset = ImGui.GetCursorScreenPos()
};
ImGuiHelpers.SeStringWrapped(seString.Encode(), drawParams);