@@ -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