private void PATHCHIPLIST_MouseMove(object sender, MouseEventArgs e) { int x = e.X / 8 * 8; int y = e.Y / 8 * 8; MAPCHIPLISTMouseCursor.X = x; MAPCHIPLISTMouseCursor.Y = y; PATHCHIPLIST.Invalidate(); }
private void WorldMap_MouseDown(object sender, MouseEventArgs e) { int x = e.X / 8 * 8; int y = e.Y / 8 * 8; if (e.Button == System.Windows.Forms.MouseButtons.Right) {//右ボタンを押すと、現在のマップチップを選択する スポイトツール SelectSpointChip(x, y); PATHCHIPLIST.Invalidate(); return; } PutPathChip(x, y); }