// Make an auto-sized draggable window... static Rect DoWindow(int id, Rect screenRect, GUI.WindowFunction func, GUIContent content, GUIStyle style, GUILayoutOption[] options) { GUIUtility.CheckOnGUI(); LayoutedWindow lw = new LayoutedWindow(func, screenRect, content, options, style); return(GUI.Window(id, screenRect, lw.DoWindow, content, style)); }
public static bool Prefix(int id, Rect screenRect, GUI.WindowFunction func, GUIContent content, GUIStyle style, Il2CppReferenceArray <GUILayoutOption> options, out Rect __result) { GUIUtility.CheckOnGUI(); var @object = new LayoutedWindow(func, screenRect, content, options, style); __result = GUI.Window(id, screenRect, (GUI.WindowFunction)@object.DoWindow, content, style); return(false); }
private static Rect DoWindow(int id, Rect screenRect, GUI.WindowFunction func, GUIContent content, GUIStyle style, GUILayoutOption[] options) { GUIUtility.CheckOnGUI(); LayoutedWindow window = new LayoutedWindow(func, screenRect, content, options, style); return GUI.Window(id, screenRect, new GUI.WindowFunction(window.DoWindow), content, style); }