Esempio n. 1
0
        public static ActionWindow ShowWindow(object startValue)
        {
            ActionWindow window = GetWindow(typeof(ActionWindow), true) as ActionWindow;

            window.variable = startValue;
            window.Init();
            return(window);
        }
Esempio n. 2
0
        public static ActionWindow ShowWindow(object startValue, ActionRef <object> onGUI,
                                              ActionRef <object> onGUITop, ActionRef <object> onGUIBottom)
        {
            ActionWindow window = GetWindow(typeof(ActionWindow), true) as ActionWindow;

            window.variable    = startValue;
            window.onGUI       = onGUI;
            window.onGUITop    = onGUITop;
            window.onGUIBottom = onGUIBottom;
            window.Init();
            return(window);
        }
Esempio n. 3
0
        public static ActionWindow ShowWindow(Action onGUI)
        {
            ActionWindow window = GetWindow(typeof(ActionWindow), true) as ActionWindow;

            if (onGUI != null)
            {
                window.onGUI = delegate(ref object obj) { onGUI(); }
            }
            ;
            window.Init();
            return(window);
        }
Esempio n. 4
0
        public static ActionWindow ShowWindow(object startValue, ActionRef <object> onGUI,
                                              Action onGUITop, Action onGUIBottom)
        {
            ActionWindow window = GetWindow(typeof(ActionWindow), true) as ActionWindow;

            window.variable = startValue;
            window.onGUI    = onGUI;
            if (onGUITop != null)
            {
                window.onGUITop = delegate(ref object obj) { onGUITop(); }
            }
            ;
            if (onGUIBottom != null)
            {
                window.onGUIBottom = delegate(ref object obj) { onGUIBottom(); }
            }
            ;
            window.Init();
            return(window);
        }