public override bool isHovered(MouseEventArgs e, Map m) { if (!Visible) { return(false); } if (Map != m) { return(false); } int x_ = (int)((x1 - refmarker.Round(refmarker.HScrollBar)) * refmarker.Zoom); if (x_ < e.X) { x_ = (int)((x2 - refmarker.Round(refmarker.HScrollBar)) * refmarker.Zoom); if (x_ > e.X) { int y_ = (int)((y1 - refmarker.Round(refmarker.VScrollBar)) * refmarker.Zoom); if (y_ < e.Y) { y_ = (int)((y2 - refmarker.Round(refmarker.VScrollBar)) * refmarker.Zoom); if (y_ > e.Y) { return(true); } } } } return(false); }
public override bool isHovered(MouseEventArgs e, Map m) { if (!Visible) { return(false); } if (Map != m) { return(false); } int x_ = (int)((x - refmarker.Round(refmarker.HScrollBar)) * refmarker.Zoom); if (((x_ - 4) < e.X) && ((x_ + 4) > e.X)) { int y_ = (int)((y - refmarker.Round(refmarker.VScrollBar)) * refmarker.Zoom); if (((y_ - 8) < e.Y) && ((y_ + 8) > e.Y)) { return(true); } } return(false); }