mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-18 13:57:43 +01:00
Compare commits
3 commits
116e8aadbc
...
21d4dbec66
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21d4dbec66 | ||
|
|
f0568216cb | ||
|
|
8ed21b4645 |
1 changed files with 5 additions and 2 deletions
|
|
@ -40,6 +40,9 @@ public static partial class ImRaii
|
|||
public static IEndObject PopupModal(ImU8String id)
|
||||
=> new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupModal(id));
|
||||
|
||||
public static IEndObject PopupModal(ImU8String id, ImGuiWindowFlags flags)
|
||||
=> new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupModal(id, flags));
|
||||
|
||||
public static IEndObject PopupModal(ImU8String id, ref bool open)
|
||||
=> new EndConditionally(ImGui.EndPopup, ImGui.BeginPopupModal(id, ref open));
|
||||
|
||||
|
|
@ -242,7 +245,7 @@ public static partial class ImRaii
|
|||
|
||||
// Use end-function regardless of success.
|
||||
// Used by Child, Group and Tooltip.
|
||||
private struct EndUnconditionally : IEndObject
|
||||
public struct EndUnconditionally : IEndObject
|
||||
{
|
||||
private Action EndAction { get; }
|
||||
|
||||
|
|
@ -268,7 +271,7 @@ public static partial class ImRaii
|
|||
}
|
||||
|
||||
// Use end-function only on success.
|
||||
private struct EndConditionally : IEndObject
|
||||
public struct EndConditionally : IEndObject
|
||||
{
|
||||
public EndConditionally(Action endAction, bool success)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue