Exemplo n.º 1
0
 public override void OnDisabled()
 {
     highlight.Disable();
     sizeSlider.SliderChanged -= OnSliderChanged;
     ui.UnregisterForHover(sizeSlider);
     uiElem.Visible = false;
 }
Exemplo n.º 2
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;
        }