2.0.0 #92

Merged
defnotken merged 171 commits from 2.0.0 into master 2025-12-21 17:19:36 +00:00
Showing only changes of commit 5e2afc8bfe - Show all commits

View File

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