private void mapView1_ContextMenu(object sender, EU2MapEditorControls.ContextMenuEventArgs e) { if ( file == null ) return; menuItem1.Enabled = (mapView1.Selection.Width >= 0 && mapView1.Selection.Height >= 0); miVisBlock.Enabled = e.BlockIndex >= 0; cmblockindex = e.BlockIndex; cmMap.Show( mapView1, new Point( e.X, e.Y ) ); }
private void mapView1_TrackerMoved(object sender, EU2MapEditorControls.TrackerMovedEventArgs e) { int id = 0; string sid = ""; if (file != null && file.IDMap != null) { id = file.IDMap[e.X, e.Y]; sid = String.Format( "(ID: {0})", id ); } sbpTracker.Text = String.Format( "{0:00000}:{1:0000} {2}", e.X, e.Y, sid ); if (mapView1.Layers.Contains("Province")) { (mapView1.Layers["Province"] as ProvinceLayerPainter).HighlightId = id; } }
private void mapView1_TrackerMoved(object sender, EU2MapEditorControls.TrackerMovedEventArgs e) { string id = ""; if ( workset.File != null && workset.File.IDMap != null ) { id = String.Format( "(ID: {0})", workset.File.IDMap[e.X, e.Y] ); } sbpTracker.Text = String.Format( "{0:00000}:{1:0000} {2}", e.X, e.Y, id ); }