From c37c86ffdf0d16db2d0e8e0fbb78f48c039d71d7 Mon Sep 17 00:00:00 2001 From: Haselnussbomber Date: Mon, 4 Aug 2025 21:19:58 +0200 Subject: [PATCH] Obsolete SafeText helpers --- Dalamud/Interface/Utility/ImGuiHelpers.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dalamud/Interface/Utility/ImGuiHelpers.cs b/Dalamud/Interface/Utility/ImGuiHelpers.cs index 3efeaea12..8218cab4c 100644 --- a/Dalamud/Interface/Utility/ImGuiHelpers.cs +++ b/Dalamud/Interface/Utility/ImGuiHelpers.cs @@ -5,7 +5,6 @@ using System.Numerics; using System.Reactive.Disposables; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using System.Text; using System.Text.Unicode; using Dalamud.Bindings.ImGui; @@ -239,6 +238,7 @@ public static partial class ImGuiHelpers /// Write unformatted text wrapped. /// /// The text to write. + [Obsolete("Use ImGui.TextWrapped. It's safe now.", true)] public static void SafeTextWrapped(ImU8String text) => ImGui.TextWrapped(text); /// @@ -246,6 +246,7 @@ public static partial class ImGuiHelpers /// /// The color of the text. /// The text to write. + [Obsolete("Use ImGui.TextColored. It's safe now.", true)] public static void SafeTextColored(Vector4 color, ImU8String text) { using (ImRaii.PushColor(ImGuiCol.Text, color)) @@ -259,11 +260,12 @@ public static partial class ImGuiHelpers /// /// The color of the text. /// The text to write. + [Obsolete("Use ImGui.TextColoredWrapped. It's safe.", true)] public static void SafeTextColoredWrapped(Vector4 color, ImU8String text) { using (ImRaii.PushColor(ImGuiCol.Text, color)) { - SafeTextWrapped(text); + ImGui.TextWrapped(text); } }