static void Painter_MouseMove(object sender, PainterMouseEventArgs e) { if (click) { center = e.UnitLocation; } }
static void Painter_MouseMove(object sender, PainterMouseEventArgs e) { if (penOn) { Painter.ActiveBuffer.DrawLine(prevPos.X, prevPos.Y, e.UnitLocation.X, e.UnitLocation.Y, BufferColor.White); } prevPos = e.UnitLocation; }
static void Painter_MouseMove(object sender, PainterMouseEventArgs e) { rotation = (-(double)e.UnitLocation.X / Painter.BackBuffer.Width); }
static void Painter_LeftButtonUp(object sender, PainterMouseEventArgs e) { penOn = false; }
static void Painter_LeftButtonDown(object sender, PainterMouseEventArgs e) { penOn = true; Painter.ActiveBuffer.Buffer[e.UnitLocation.Y, e.UnitLocation.X].BackColor = BufferColor.White; }
static void Painter_RightButtonDown(object sender, PainterMouseEventArgs e) { Painter.BackBuffer.DrawCircle(e.UnitLocation.X, e.UnitLocation.Y, 16, new RandomColorBufferBrush(BufferColor.Identity, BufferColor.White)); }
static void Painter_RightButtonDown(object sender, PainterMouseEventArgs e) { paintBuffer.FloodFill(e.UnitLocation.X, e.UnitLocation.Y, pallette[pen]); }
static void Painter_MouseMove(object sender, PainterMouseEventArgs e) { if (penOn) { paintBuffer.DrawLine(pLast.X, pLast.Y, e.UnitLocation.X, e.UnitLocation.Y, pallette[pen]); } pLast = e.UnitLocation; }
static void Painter_LeftButtonDown(object sender, PainterMouseEventArgs e) { pLast = e.UnitLocation; if (!penOn && e.UnitLocation.X < 10 && e.UnitLocation.Y < pallette.Length * 5 / 2) { pen = e.UnitLocation.Y / 5 + (e.UnitLocation.X / 5) * 8; } penOn = true; paintBuffer.SetUnitBackColor(e.UnitLocation.X, e.UnitLocation.Y, pallette[pen]); }
static void Painter_LeftButtonDown(object sender, PainterMouseEventArgs e) { click = true; }