Esempio n. 1
0
        // 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));
        }
Esempio n. 2
0
            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);
            }
Esempio n. 3
0
 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);
 }