mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Use ImU8String for SafeTextColored
This commit is contained in:
parent
81c3ad9421
commit
c8a7c712c1
1 changed files with 1 additions and 10 deletions
|
|
@ -246,16 +246,7 @@ public static partial class ImGuiHelpers
|
|||
/// </summary>
|
||||
/// <param name="color">The color of the text.</param>
|
||||
/// <param name="text">The text to write.</param>
|
||||
public static void SafeTextColored(Vector4 color, string text)
|
||||
{
|
||||
using (ImRaii.PushColor(ImGuiCol.Text, color))
|
||||
{
|
||||
ImGui.TextUnformatted(text);
|
||||
}
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="SafeTextColored(Vector4, string)"/>
|
||||
public static void SafeTextColored(Vector4 color, ReadOnlySpan<byte> text)
|
||||
public static void SafeTextColored(Vector4 color, ImU8String text)
|
||||
{
|
||||
using (ImRaii.PushColor(ImGuiCol.Text, color))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue