| | |
| | | #region Event |
| | | public Action<MouseState> OnMouseStateChanged; |
| | | public Action<IShapeElement> DrawTemplateChanged = null; |
| | | public Action<Point, Point> OnMouseLocationUpdated; |
| | | public Action<Point, Point, string> OnMouseLocationUpdated; |
| | | #endregion |
| | | |
| | | private MouseState mouseState = MouseState.Normal; |
| | |
| | | //} |
| | | |
| | | //DisplayMouseLocation(e.Location); |
| | | OnMouseLocationUpdated?.BeginInvoke(e.Location, ToMapPoint(e.Location), null, null); |
| | | Point mapPoint = ToMapPoint(e.Location); |
| | | Color color = Color.Transparent; |
| | | if (MAP != null && mapPoint.X > 0 && mapPoint.X < MAP.Width && mapPoint.Y > 0 && mapPoint.Y < MAP.Height) |
| | | { |
| | | color = MAP.GetPixel(mapPoint.X, mapPoint.Y); |
| | | } |
| | | OnMouseLocationUpdated?.BeginInvoke(e.Location, mapPoint, color.Name, null, null); |
| | | |
| | | if (MouseState != MouseState.SelectionZoneDoing) |
| | | { |