@@ -37,16 +37,7 @@ public static Rect Window(int id, Rect clientRect, Action<int> func, GUIContent
3737 {
3838 return GUIStubs . DoWindow ( id , clientRect , func , text , GUI . skin . window , options ) ;
3939 }
40- #endif
41- public static Rect Window ( int id , Rect clientRect , GUI . WindowFunction func , string text , params GUILayoutOption [ ] options )
42- {
43- return GUILayout . Window ( id , clientRect , func , text , options ) ;
44- }
45- public static Rect Window ( int id , Rect clientRect , GUI . WindowFunction func , GUIContent text , params GUILayoutOption [ ] options )
46- {
47- return GUILayout . Window ( id , clientRect , func , text , options ) ;
48- }
49- public static GUILayoutOption MinWidth ( float minWidth ) //cuz the original functions dont fucking work for the most BS reason
40+ public static GUILayoutOption MinWidth ( float minWidth ) //cuz the original functions dont fucking work for the most BS reason
5041 {
5142 return new GUILayoutOption ( GUILayoutOption . Type . minWidth , minWidth ) ;
5243 }
@@ -75,6 +66,15 @@ public static GUILayoutOption ExpandHeight(bool expand)
7566 {
7667 return new GUILayoutOption ( GUILayoutOption . Type . stretchHeight , ( expand ? 1 : 0 ) ) ;
7768 }
69+ #endif
70+ public static Rect Window ( int id , Rect clientRect , GUI . WindowFunction func , string text , params GUILayoutOption [ ] options )
71+ {
72+ return GUILayout . Window ( id , clientRect , func , text , options ) ;
73+ }
74+ public static Rect Window ( int id , Rect clientRect , GUI . WindowFunction func , GUIContent text , params GUILayoutOption [ ] options )
75+ {
76+ return GUILayout . Window ( id , clientRect , func , text , options ) ;
77+ }
7878 }
7979 #if IL2CPP
8080 public static Rect Window ( int id , Rect clientRect , Action < int > func , string text )
0 commit comments