示例#1
0
        private void action_PaintStart(object sender, EventArgs e)
        {
            if (cmvPlayer.PaintedCell.X == -1)
                return;

            clonedFrame = CMVFrame.CloneFrame(cmvframes[cmvPlayer.Frame]);
            cmvframes = cmvframes.Replace(cmvPlayer.Frame, clonedFrame);

            if (cmvPlayer.PaintedCell.X < clonedFrame.Columns && cmvPlayer.PaintedCell.Y < clonedFrame.Rows)
            {
                clonedFrame.SetCell((uint)cmvPlayer.PaintedCell.X, (uint)cmvPlayer.PaintedCell.Y, (byte)tileSelector.SelectedTile, CMVColours.GenerateColorCode(tileSelector.BackgroundColor, tileSelector.ForegroundColor));
            }

            cmvPlayer.Pause();
            UpdateCMV();
            RefreshControls();
        }