SetInvisible() private method

private SetInvisible ( ) : void
return void
Example #1
0
        private void Show(GUIView sourceView)
        {
            this.m_DelegateView = sourceView;
            ContainerWindow containerWindow = ScriptableObject.CreateInstance <ContainerWindow>();

            containerWindow.m_DontSaveToLayout = true;
            containerWindow.title     = "EyeDropper";
            containerWindow.hideFlags = HideFlags.DontSave;
            containerWindow.rootView  = this;
            containerWindow.Show(ShowMode.PopupMenu, true, false);
            base.AddToAuxWindowList();
            containerWindow.SetInvisible();
            base.SetMinMaxSizes(new Vector2(0f, 0f), new Vector2(8192f, 8192f));
            containerWindow.position = new Rect(-4096f, -4096f, 8192f, 8192f);
            base.wantsMouseMove      = true;
            base.StealMouseCapture();
        }
Example #2
0
        private void Show(GUIView sourceView)
        {
            this.m_DelegateView = sourceView;
            ContainerWindow instance = ScriptableObject.CreateInstance <ContainerWindow>();

            instance.m_DontSaveToLayout = true;
            instance.title     = "EyeDropper";
            instance.hideFlags = HideFlags.DontSave;
            instance.mainView  = (View)this;
            instance.Show(ShowMode.PopupMenu, true, false);
            this.AddToAuxWindowList();
            instance.SetInvisible();
            this.SetMinMaxSizes(new Vector2(0.0f, 0.0f), new Vector2(10000f, 10000f));
            instance.position   = new Rect(-5000f, -5000f, 10000f, 10000f);
            this.wantsMouseMove = true;
            this.StealMouseCapture();
        }
Example #3
0
        private static void Start(GUIView viewToUpdate, Action <Color> colorPickedCallback, bool stealFocus)
        {
            EyeDropper.instance.m_DelegateView        = viewToUpdate;
            EyeDropper.instance.m_ColorPickedCallback = colorPickedCallback;
            ContainerWindow containerWindow = ScriptableObject.CreateInstance <ContainerWindow>();

            containerWindow.m_DontSaveToLayout = true;
            containerWindow.title     = "EyeDropper";
            containerWindow.hideFlags = HideFlags.DontSave;
            containerWindow.rootView  = EyeDropper.instance;
            containerWindow.Show(ShowMode.PopupMenu, true, false);
            EyeDropper.instance.AddToAuxWindowList();
            containerWindow.SetInvisible();
            EyeDropper.instance.SetMinMaxSizes(new Vector2(0f, 0f), new Vector2(8192f, 8192f));
            containerWindow.position           = new Rect(-4096f, -4096f, 8192f, 8192f);
            EyeDropper.instance.wantsMouseMove = true;
            EyeDropper.instance.StealMouseCapture();
            if (stealFocus)
            {
                EyeDropper.instance.Focus();
            }
        }