This commit is contained in:
fieesr 2025-02-20 11:20:01 +03:00
parent 04030deb61
commit 23a4fc4a7f

View File

@ -134,40 +134,25 @@ public class DrawningTank
{ {
return; return;
} }
Pen pen = new(Color.Black); Pen pen = new(Color.Black,2);
Brush additionalBrush = new SolidBrush(EntityTank.AdditionalColor); Brush additionalBrush = new SolidBrush(EntityTank.AdditionalColor);
// обвесы
if (EntityTank.BodyKit) if (EntityTank.BodyKit)
{ {
g.DrawEllipse(pen, _startPosX.Value + 90, _startPosY.Value, 20, 20); //гусеница
g.DrawEllipse(pen, _startPosX.Value + 90, _startPosY.Value + 40, 20, 20); g.DrawEllipse(pen, _startPosX.Value + 100, _startPosY.Value + 50, 10, 10);
g.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value + 10, 20, 40); g.DrawEllipse(pen, _startPosX.Value + 40, _startPosY.Value + 50, 10, 10);
g.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value, 15, 15); g.DrawEllipse(pen, _startPosX.Value + 55, _startPosY.Value + 55, 8, 8);
g.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value + 45, 15, 15); g.DrawEllipse(pen, _startPosX.Value + 70, _startPosY.Value + 55, 8, 8);
g.DrawEllipse(pen, _startPosX.Value + 85, _startPosY.Value + 55, 8, 8);
g.FillEllipse(additionalBrush, _startPosX.Value + 90, _startPosY.Value, 20, 20); g.DrawEllipse(pen, _startPosX.Value + 35, _startPosY.Value + 45, 80, 20);
g.FillEllipse(additionalBrush, _startPosX.Value + 90, _startPosY.Value + 40, 20, 20); //основание
g.FillRectangle(additionalBrush, _startPosX.Value + 90, _startPosY.Value + 10, 20, 40); g.DrawRectangle(pen, _startPosX.Value + 40, _startPosY.Value + 40, 70, 8);
g.FillRectangle(additionalBrush, _startPosX.Value + 90, _startPosY.Value + 1, 15, 15); //кабина
g.FillRectangle(additionalBrush, _startPosX.Value + 90, _startPosY.Value + 45, 15, 15); g.DrawRectangle(pen, _startPosX.Value + 60, _startPosY.Value + 30, 30, 10);
g.DrawEllipse(pen, _startPosX.Value, _startPosY.Value, 20, 20); g.DrawRectangle(pen, _startPosX.Value + 80, _startPosY.Value + 25, 30, 5);
g.DrawEllipse(pen, _startPosX.Value, _startPosY.Value + 40, 20, 20);
g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 10, 20, 40);
g.DrawRectangle(pen, _startPosX.Value + 5, _startPosY.Value, 14, 15);
g.DrawRectangle(pen, _startPosX.Value + 5, _startPosY.Value + 45, 14, 15);
g.FillEllipse(additionalBrush, _startPosX.Value, _startPosY.Value, 20, 20);
g.FillEllipse(additionalBrush, _startPosX.Value, _startPosY.Value + 40, 20, 20);
g.FillRectangle(additionalBrush, _startPosX.Value + 1, _startPosY.Value + 10, 25, 40);
g.FillRectangle(additionalBrush, _startPosX.Value + 5, _startPosY.Value + 1, 15, 15);
g.FillRectangle(additionalBrush, _startPosX.Value + 5, _startPosY.Value + 45, 15, 15);
g.DrawRectangle(pen, _startPosX.Value + 35, _startPosY.Value, 39, 15);
g.DrawRectangle(pen, _startPosX.Value + 35, _startPosY.Value + 45, 39, 15);
g.FillRectangle(additionalBrush, _startPosX.Value + 35, _startPosY.Value + 1, 40, 15);
g.FillRectangle(additionalBrush, _startPosX.Value + 35, _startPosY.Value + 45, 40, 15);
} }
} }