Add ImGui.TextColoredWrapped

This commit is contained in:
Haselnussbomber 2025-08-04 21:19:51 +02:00
parent a60ee3a2d4
commit 402d8c60e3
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1

View file

@ -282,6 +282,22 @@ public static unsafe partial class ImGui
text.Dispose();
}
public static void TextColoredWrapped(uint col, ImU8String text)
{
PushStyleColor(ImGuiCol.Text, col);
TextWrapped(text.Span);
PopStyleColor();
text.Dispose();
}
public static void TextColoredWrapped(scoped in Vector4 col, ImU8String text)
{
PushStyleColor(ImGuiCol.Text, col);
TextWrapped(text.Span);
PopStyleColor();
text.Dispose();
}
public static bool TreeNode(ImU8String label)
{
var window = ImGuiP.GetCurrentWindow();