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; }
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; }
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; }
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; }