@@ -511,6 +511,16 @@ public static bool BeginWindow(string windowTitle, ref bool opened, float backgr
511
511
return ImGuiNative . igBegin2 ( windowTitle , ref opened , new Vector2 ( ) , backgroundAlpha , flags ) ;
512
512
}
513
513
514
+ public static bool BeginWindow ( string windowTitle , ref bool opened , Vector2 startingSize , WindowFlags flags )
515
+ {
516
+ return ImGuiNative . igBegin2 ( windowTitle , ref opened , startingSize , 1f , flags ) ;
517
+ }
518
+
519
+ public static bool BeginWindow ( string windowTitle , ref bool opened , Vector2 startingSize , float backgroundAlpha , WindowFlags flags )
520
+ {
521
+ return ImGuiNative . igBegin2 ( windowTitle , ref opened , startingSize , backgroundAlpha , flags ) ;
522
+ }
523
+
514
524
public static bool BeginMenu ( string label )
515
525
{
516
526
return ImGuiNative . igBeginMenu ( label , true ) ;
@@ -531,11 +541,6 @@ public static void CloseCurrentPopup()
531
541
ImGuiNative . igCloseCurrentPopup ( ) ;
532
542
}
533
543
534
- public static bool BeginWindow ( string windowTitle , ref bool opened , Vector2 startingSize , WindowFlags flags )
535
- {
536
- return ImGuiNative . igBegin2 ( windowTitle , ref opened , startingSize , 1f , flags ) ;
537
- }
538
-
539
544
public static void EndMenuBar ( )
540
545
{
541
546
ImGuiNative . igEndMenuBar ( ) ;
@@ -546,11 +551,6 @@ public static void EndMenu()
546
551
ImGuiNative . igEndMenu ( ) ;
547
552
}
548
553
549
- public static bool BeginWindow ( string windowTitle , ref bool opened , Vector2 startingSize , float backgroundAlpha , WindowFlags flags )
550
- {
551
- return ImGuiNative . igBegin2 ( windowTitle , ref opened , startingSize , backgroundAlpha , flags ) ;
552
- }
553
-
554
554
public static void Separator ( )
555
555
{
556
556
ImGuiNative . igSeparator ( ) ;
@@ -884,22 +884,26 @@ public static bool SmallButton(string label)
884
884
885
885
public static bool BeginPopupModal ( string name )
886
886
{
887
- return ImGuiNative . igBeginPopupModal ( name , WindowFlags . Default ) ;
887
+ return BeginPopupModal ( name , WindowFlags . Default ) ;
888
888
}
889
889
890
- public static bool BeginPopupModal ( string name , WindowFlags extraFlags )
890
+ public static bool BeginPopupModal ( string name , ref bool opened )
891
891
{
892
- return ImGuiNative . igBeginPopupModal ( name , extraFlags ) ;
892
+ return BeginPopupModal ( name , ref opened , WindowFlags . Default ) ;
893
893
}
894
894
895
- public static bool BeginPopupModal ( string name , ref bool opened )
895
+ public static unsafe bool BeginPopupModal ( string name , WindowFlags extra_flags )
896
896
{
897
- return ImGuiNative . igBeginPopupModal ( name , ref opened , WindowFlags . Default ) ;
897
+ return ImGuiNative . igBeginPopupModal ( name , null , extra_flags ) ;
898
898
}
899
899
900
- public static bool BeginPopupModal ( string name , ref bool opened , WindowFlags extraFlags )
900
+ public static unsafe bool BeginPopupModal ( string name , ref bool p_opened , WindowFlags extra_flags )
901
901
{
902
- return ImGuiNative . igBeginPopupModal ( name , ref opened , extraFlags ) ;
902
+ byte value = p_opened ? ( byte ) 1 : ( byte ) 0 ;
903
+ bool result = ImGuiNative . igBeginPopupModal ( name , & value , extra_flags ) ;
904
+
905
+ p_opened = value == 1 ? true : false ;
906
+ return result ;
903
907
}
904
908
905
909
public static bool Selectable ( string label , bool isSelected , SelectableFlags flags )
0 commit comments