Ejemplo n.º 1
0
        public override void Disable()
        {
            if (!enabled)
            {
                return;
            }

            checkBoxes.Hide();

            input.MouseDown -= OnMouseDown;
            enabled          = false;
        }
Ejemplo n.º 2
0
        public override void Disable()
        {
            if (!enabled)
            {
                return;
            }

            checkBoxes.Hide();

            manipulator?.OnDisabled();

            input.MouseDown    -= OnMouseDown;
            input.MouseMove    -= OnMouseMoved;
            input.MouseUp      -= OnMouseUp;
            camera.CameraMoved -= OnCameraMove;
            enabled             = false;
        }
Ejemplo n.º 3
0
        public override void Disable()
        {
            if (!enabled)
            {
                return;
            }

            checkBoxes.Deselect();
            checkBoxes.Hide();

            input.MouseDown -= OnMouseDown;
            input.MouseMove -= OnMouseMove;
            Level.Update    -= OnUpdate;
            ui.HoverBegin   -= UIHoverBegin;

            Map.DisableHighlight();
            enabled = false;
        }
Ejemplo n.º 4
0
        public override void Disable()
        {
            if (!enabled)
            {
                return;
            }

            checkBoxes.Hide();
            checkBoxes.Deselect();
            uiElem.Visible = false;

            highlight.Disable();
            input.MouseDown          -= OnMouseDown;
            input.MouseUp            -= OnMouseUp;
            sizeSlider.SliderChanged -= OnSliderChanged;
            highlight.SquareChanged  -= Highlight_SquareChanged;
            ui.UnregisterForHover(sizeSlider);

            enabled         = false;
            mouseButtonDown = false;
        }
Ejemplo n.º 5
0
        public override void Disable()
        {
            if (!enabled)
            {
                return;
            }

            checkBoxes.Deselect();
            checkBoxes.Hide();
            uiElem.Visible = false;

            input.MouseWheelMoved -= OnMouseWheelMoved;
            input.MouseUp         -= OnMouseUp;
            input.MouseDown       -= OnMouseDown;
            input.MouseMove       -= OnMouseMove;
            Level.Update          -= OnUpdate;
            ui.HoverBegin         -= UIHoverBegin;
            ui.HoverEnd           -= UIHoverEnd;

            Map.DisableHighlight();
            enabled = false;
        }