Exemple #1
0
        public override void Disable()
        {
            if (!enabled)
            {
                return;
            }

            checkBoxes.Hide();

            input.MouseDown -= OnMouseDown;
            enabled          = false;
        }
        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;
        }
Exemple #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;
        }
Exemple #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;
        }
Exemple #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;
        }