mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 21:24:16 +01:00
fix: make settings window text wrap, add explainer for new testing mode
This commit is contained in:
parent
ae1d90162a
commit
a499ba9447
4 changed files with 61 additions and 40 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue