diff --git a/src/ImGui.NET/ImGui.cs b/src/ImGui.NET/ImGui.cs index 5e2a116..8fb93ce 100644 --- a/src/ImGui.NET/ImGui.cs +++ b/src/ImGui.NET/ImGui.cs @@ -511,6 +511,16 @@ namespace ImGuiNET return ImGuiNative.igBegin2(windowTitle, ref opened, new Vector2(), backgroundAlpha, flags); } + public static bool BeginWindow(string windowTitle, ref bool opened, Vector2 startingSize, WindowFlags flags) + { + return ImGuiNative.igBegin2(windowTitle, ref opened, startingSize, 1f, flags); + } + + public static bool BeginWindow(string windowTitle, ref bool opened, Vector2 startingSize, float backgroundAlpha, WindowFlags flags) + { + return ImGuiNative.igBegin2(windowTitle, ref opened, startingSize, backgroundAlpha, flags); + } + public static bool BeginMenu(string label) { return ImGuiNative.igBeginMenu(label, true); @@ -531,11 +541,6 @@ namespace ImGuiNET ImGuiNative.igCloseCurrentPopup(); } - public static bool BeginWindow(string windowTitle, ref bool opened, Vector2 startingSize, WindowFlags flags) - { - return ImGuiNative.igBegin2(windowTitle, ref opened, startingSize, 1f, flags); - } - public static void EndMenuBar() { ImGuiNative.igEndMenuBar(); @@ -546,11 +551,6 @@ namespace ImGuiNET ImGuiNative.igEndMenu(); } - public static bool BeginWindow(string windowTitle, ref bool opened, Vector2 startingSize, float backgroundAlpha, WindowFlags flags) - { - return ImGuiNative.igBegin2(windowTitle, ref opened, startingSize, backgroundAlpha, flags); - } - public static void Separator() { ImGuiNative.igSeparator();