fix: make settings window text wrap, add explainer for new testing mode

This commit is contained in:
goat 2022-11-01 00:40:22 +01:00
parent ae1d90162a
commit a499ba9447
No known key found for this signature in database
GPG key ID: 49E2AA8C6A76498B
4 changed files with 61 additions and 40 deletions

View file

@ -148,6 +148,18 @@ public static class ImGuiHelpers
/// <param name="text">The text to write.</param>
public static void SafeTextWrapped(string text) => ImGui.TextWrapped(text.Replace("%", "%%"));
/// <summary>
/// Write unformatted text wrapped.
/// </summary>
/// <param name="color">The color of the text.</param>
/// <param name="text">The text to write.</param>
public static void SafeTextColoredWrapped(Vector4 color, string text)
{
ImGui.PushStyleColor(ImGuiCol.Text, color);
ImGui.TextWrapped(text.Replace("%", "%%"));
ImGui.PopStyleColor();
}
/// <summary>
/// Fills missing glyphs in target font from source font, if both are not null.
/// </summary>