feat(ImGuiHelpers): add SafeTextWrapped

This commit is contained in:
goat 2022-02-16 14:10:18 +01:00
parent 7864570a56
commit c866c23d91
No known key found for this signature in database
GPG key ID: 7773BB5B43BA52E5

View file

@ -130,6 +130,12 @@ namespace Dalamud.Interface
if (ImGui.IsItemClicked()) ImGui.SetClipboardText($"{textCopy}");
}
/// <summary>
/// Write unformatted text wrapped.
/// </summary>
/// <param name="text">The text to write.</param>
public static void SafeTextWrapped(string text) => ImGui.TextWrapped(text.Replace("%", "%%"));
/// <summary>
/// Get data needed for each new frame.
/// </summary>