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;

            this.TSAInfo.Text = GetTSAInfoText();
            CHIPLIST.Invalidate();
        }
Exemple #2
0
        private void TSAEditor_MouseDown(object sender, MouseEventArgs e)
        {
            int zoom     = GetZoom();
            int chipsize = 8 * zoom;

            int x = e.X / chipsize * chipsize;
            int y = e.Y / chipsize * chipsize;

            x = x / chipsize;
            y = y / chipsize;
            if (e.Button == System.Windows.Forms.MouseButtons.Right)
            {//右ボタンを押すと、現在のマップチップを選択する スポイトツール
                SelectSpointChip(x, y);
                CHIPLIST.Invalidate();
                return;
            }

            PutPathChip(x, y);
        }