SafeTextColored didn't exist before imgui-bindings

This commit is contained in:
Haselnussbomber 2025-08-04 21:29:32 +02:00
parent 1ab77a60ce
commit c6dc051cc6
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1

View file

@ -241,20 +241,6 @@ public static partial class ImGuiHelpers
[Obsolete("Use ImGui.TextWrapped. It's safe now.", true)]
public static void SafeTextWrapped(ImU8String text) => ImGui.TextWrapped(text);
/// <summary>
/// Write colored, unformatted text.
/// </summary>
/// <param name="color">The color of the text.</param>
/// <param name="text">The text to write.</param>
[Obsolete("Use ImGui.TextColored. It's safe now.", true)]
public static void SafeTextColored(Vector4 color, ImU8String text)
{
using (ImRaii.PushColor(ImGuiCol.Text, color))
{
ImGui.Text(text);
}
}
/// <summary>
/// Write colored, unformatted text wrapped.
/// </summary>