From 402d8c60e3b040a343851e4857dab27742bc5042 Mon Sep 17 00:00:00 2001 From: Haselnussbomber Date: Mon, 4 Aug 2025 21:19:51 +0200 Subject: [PATCH] Add ImGui.TextColoredWrapped --- .../Dalamud.Bindings.ImGui/Custom/ImGui.Text.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Text.cs b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Text.cs index 4c8d7f7d0..297b68924 100644 --- a/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Text.cs +++ b/imgui/Dalamud.Bindings.ImGui/Custom/ImGui.Text.cs @@ -282,6 +282,22 @@ public static unsafe partial class ImGui text.Dispose(); } + public static void TextColoredWrapped(uint col, ImU8String text) + { + PushStyleColor(ImGuiCol.Text, col); + TextWrapped(text.Span); + PopStyleColor(); + text.Dispose(); + } + + public static void TextColoredWrapped(scoped in Vector4 col, ImU8String text) + { + PushStyleColor(ImGuiCol.Text, col); + TextWrapped(text.Span); + PopStyleColor(); + text.Dispose(); + } + public static bool TreeNode(ImU8String label) { var window = ImGuiP.GetCurrentWindow();