From 23a4fc4a7fa12406679d1ca85a50e61cc1b26578 Mon Sep 17 00:00:00 2001 From: fieesr Date: Thu, 20 Feb 2025 11:20:01 +0300 Subject: [PATCH] commit2 --- .../DrawningTank.cs | 41 ++++++------------- 1 file changed, 13 insertions(+), 28 deletions(-) diff --git a/SelfPropelledArtilleryUnit/SelfPropelledArtilleryUnit/DrawningTank.cs b/SelfPropelledArtilleryUnit/SelfPropelledArtilleryUnit/DrawningTank.cs index b588e6a..d2667c2 100644 --- a/SelfPropelledArtilleryUnit/SelfPropelledArtilleryUnit/DrawningTank.cs +++ b/SelfPropelledArtilleryUnit/SelfPropelledArtilleryUnit/DrawningTank.cs @@ -134,40 +134,25 @@ public class DrawningTank { return; } - Pen pen = new(Color.Black); + Pen pen = new(Color.Black,2); Brush additionalBrush = new SolidBrush(EntityTank.AdditionalColor); - // обвесы 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.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value + 10, 20, 40); - g.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value, 15, 15); - g.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value + 45, 15, 15); + //гусеница + g.DrawEllipse(pen, _startPosX.Value + 100, _startPosY.Value + 50, 10, 10); + g.DrawEllipse(pen, _startPosX.Value + 40, _startPosY.Value + 50, 10, 10); + g.DrawEllipse(pen, _startPosX.Value + 55, _startPosY.Value + 55, 8, 8); + 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.FillEllipse(additionalBrush, _startPosX.Value + 90, _startPosY.Value + 40, 20, 20); - g.FillRectangle(additionalBrush, _startPosX.Value + 90, _startPosY.Value + 10, 20, 40); - g.FillRectangle(additionalBrush, _startPosX.Value + 90, _startPosY.Value + 1, 15, 15); - g.FillRectangle(additionalBrush, _startPosX.Value + 90, _startPosY.Value + 45, 15, 15); + g.DrawEllipse(pen, _startPosX.Value + 35, _startPosY.Value + 45, 80, 20); + //основание + g.DrawRectangle(pen, _startPosX.Value + 40, _startPosY.Value + 40, 70, 8); + //кабина + g.DrawRectangle(pen, _startPosX.Value + 60, _startPosY.Value + 30, 30, 10); - g.DrawEllipse(pen, _startPosX.Value, _startPosY.Value, 20, 20); - 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.DrawRectangle(pen, _startPosX.Value + 80, _startPosY.Value + 25, 30, 5); - 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); } }