From c8a7c712c166e65f275e26e60c95e2df6fa6be16 Mon Sep 17 00:00:00 2001 From: Haselnussbomber Date: Mon, 4 Aug 2025 21:03:38 +0200 Subject: [PATCH] Use ImU8String for SafeTextColored --- Dalamud/Interface/Utility/ImGuiHelpers.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Dalamud/Interface/Utility/ImGuiHelpers.cs b/Dalamud/Interface/Utility/ImGuiHelpers.cs index cc144d09a..35b27c0a6 100644 --- a/Dalamud/Interface/Utility/ImGuiHelpers.cs +++ b/Dalamud/Interface/Utility/ImGuiHelpers.cs @@ -246,16 +246,7 @@ public static partial class ImGuiHelpers /// /// The color of the text. /// The text to write. - public static void SafeTextColored(Vector4 color, string text) - { - using (ImRaii.PushColor(ImGuiCol.Text, color)) - { - ImGui.TextUnformatted(text); - } - } - - /// - public static void SafeTextColored(Vector4 color, ReadOnlySpan text) + public static void SafeTextColored(Vector4 color, ImU8String text) { using (ImRaii.PushColor(ImGuiCol.Text, color)) {