mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
feat: add ImRaii.PopupModal()
This commit is contained in:
parent
9f074abb0b
commit
e8c411bd72
1 changed files with 9 additions and 0 deletions
|
|
@ -35,6 +35,15 @@ public static partial class ImRaii
|
|||
|
||||
public static IEndObject Popup(string id, ImGuiWindowFlags flags)
|
||||
=> new EndConditionally(ImGui.EndPopup, ImGui.BeginPopup(id, flags));
|
||||
|
||||
public static IEndObject PopupModal(string id)
|
||||
=> new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupModal(id));
|
||||
|
||||
public static IEndObject PopupModal(string id, ref bool open)
|
||||
=> new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupModal(id, ref open));
|
||||
|
||||
public static IEndObject PopupModal(string id, ref bool open, ImGuiWindowFlags flags)
|
||||
=> new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupModal(id, ref open, flags));
|
||||
|
||||
public static IEndObject ContextPopup(string id)
|
||||
=> new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupContextWindow(id));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue