Exemple #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));
        }
Exemple #2
0
 internal LayoutedWindow(GUI.WindowFunction f, Rect screenRect, GUIContent content, GUILayoutOption[] options, GUIStyle style)
 {
     m_Func       = f;
     m_ScreenRect = screenRect;
     m_Options    = options;
     m_Style      = style;
 }
Exemple #3
0
 internal LayoutedWindow(GUI.WindowFunction f, Rect _screenRect, GUIContent _content, GUILayoutOption[] _options, GUIStyle _style)
 {
     this.func       = f;
     this.screenRect = _screenRect;
     this.options    = _options;
     this.style      = _style;
 }
Exemple #4
0
    public static Delegate UnityEngine_GUI_WindowFunction(LuaFunction func)
    {
        if (func == null)
        {
            UnityEngine.GUI.WindowFunction fn = delegate { };
            return(fn);
        }

        UnityEngine.GUI.WindowFunction d = (new UnityEngine_GUI_WindowFunction_Event(func)).Call;
        return(d);
    }
Exemple #5
0
 public void doBuilderWindow(int id, UnityEngine.GUI.WindowFunction func, string title)
 {
     GUI.Window(id, new Rect(Screen.width - 256, 0, 256, Screen.height), func, title);
 }
Exemple #6
0
 // Make a popup window that layouts its contents automatically.
 public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, GUIContent content, GUIStyle style, params GUILayoutOption[] options)
 {
     return(DoWindow(id, screenRect, func, content, style, options));
 }
Exemple #7
0
 public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, Texture image, GUIStyle style, params GUILayoutOption[] options)
 {
     return(DoWindow(id, screenRect, func, GUIContent.Temp(image), style, options));
 }
Exemple #8
0
 public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, string text, params GUILayoutOption[] options)
 {
     return(DoWindow(id, screenRect, func, GUIContent.Temp(text), GUI.skin.window, options));
 }
Exemple #9
0
 private static Rect DoWindow(int id, Rect screenRect, GUI.WindowFunction func, GUIContent content, GUIStyle style, GUILayoutOption[] options)
 {
     GUIUtility.CheckOnGUI();
     GUILayout.LayoutedWindow @object = new GUILayout.LayoutedWindow(func, screenRect, content, options, style);
     return(GUI.Window(id, screenRect, new GUI.WindowFunction(@object.DoWindow), content, style));
 }
Exemple #10
0
 public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, GUIContent content, params GUILayoutOption[] options)
 {
     return(GUILayout.DoWindow(id, screenRect, func, content, GUI.skin.window, options));
 }
 private static Rect DoWindow(int id, Rect screenRect, GUI.WindowFunction func, GUIContent content, GUIStyle style, GUILayoutOption[] options) => throw new NotImplementedException();
Exemple #12
0
            }                                      // Dummy constructor

            internal LayoutedWindow(GUI.WindowFunction f, Rect screenRect, GUIContent content, GUILayoutOption[] options, GUIStyle style)
            {
            }                                                                                                                                            // 0x0000000180A36BF0-0x0000000180A36D10
Exemple #13
0
 public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, string text, params /* 0x00000001800D4E50-0x00000001800D4E60 */ GUILayoutOption[] options) => default; // 0x0000000180A25F70-0x0000000180A260D0
 private static Rect DoWindow(int id, Rect screenRect, GUI.WindowFunction func, GUIContent content, GUIStyle style, GUILayoutOption[] options) => default;                          // 0x0000000180A241F0-0x0000000180A244A0
Exemple #14
0
        }                                                                                                                                                                                  // 0x0000000180A246D0-0x0000000180A24750

        public static Rect Window(int id, Rect screenRect, GUI.WindowFunction func, string text, params /* 0x00000001800D4E50-0x00000001800D4E60 */ GUILayoutOption[] options) => default; // 0x0000000180A25F70-0x0000000180A260D0