Example #1
0
            protected override void RenderWindow()
            {
                var old_skin = UnityEngine.GUI.skin;

                UnityEngine.GUI.skin = null;
                if (show_selector_)
                {
                    window_rectangle_ = UnityEngine.GUILayout.Window(
                        id: this.GetHashCode(),
                        screenRect: window_rectangle_,
                        func: RenderSelector,
                        text: name_ + " selection (" + Name() +
                        ")");
                    WindowUtilities.EnsureOnScreen(ref window_rectangle_);
                    window_rectangle_.InputLock(this);
                }
                else
                {
                    WindowUtilities.ClearLock(this);
                }
                UnityEngine.GUI.skin = old_skin;
            }
Example #2
0
            protected override void RenderWindow()
            {
                var old_skin = UnityEngine.GUI.skin;

                UnityEngine.GUI.skin = null;
                if (show_planner_)
                {
                    window_rectangle_ = UnityEngine.GUILayout.Window(
                        id: this.GetHashCode(),
                        screenRect: window_rectangle_,
                        func: RenderPlanner,
                        text: "Flight plan",
                        options: UnityEngine.GUILayout.MinWidth(500));
                    WindowUtilities.EnsureOnScreen(ref window_rectangle_);
                    window_rectangle_.InputLock(this);
                }
                else
                {
                    WindowUtilities.ClearLock(this);
                }
                UnityEngine.GUI.skin = old_skin;
            }