mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
Add ImRaii.ContextPopupItem (#1322)
This commit is contained in:
parent
d4c68a480f
commit
8d49d28552
1 changed files with 6 additions and 0 deletions
|
|
@ -51,6 +51,12 @@ public static partial class ImRaii
|
||||||
public static IEndObject ContextPopup(string id, ImGuiPopupFlags flags)
|
public static IEndObject ContextPopup(string id, ImGuiPopupFlags flags)
|
||||||
=> new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupContextWindow(id, flags));
|
=> new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupContextWindow(id, flags));
|
||||||
|
|
||||||
|
public static IEndObject ContextPopupItem(string id)
|
||||||
|
=> new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupContextItem(id));
|
||||||
|
|
||||||
|
public static IEndObject ContextPopupItem(string id, ImGuiPopupFlags flags)
|
||||||
|
=> new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupContextItem(id, flags));
|
||||||
|
|
||||||
public static IEndObject Combo(string label, string previewValue)
|
public static IEndObject Combo(string label, string previewValue)
|
||||||
=> new EndConditionally(ImGui.EndCombo, ImGui.BeginCombo(label, previewValue));
|
=> new EndConditionally(ImGui.EndCombo, ImGui.BeginCombo(label, previewValue));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue