mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Add ImGui.TextColoredWrapped
This commit is contained in:
parent
a60ee3a2d4
commit
402d8c60e3
1 changed files with 16 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue