From 675d68938347bb3718ed1d573c4bd1e6c2ffef2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BC=D0=B0?= Date: Thu, 23 May 2024 01:43:01 +0400 Subject: [PATCH] =?UTF-8?q?=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Drawnings/DrawningArtilleryUnit.cs | 39 +++++++++++-------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/ArtilleryUnit/ArtilleryUnit/Drawnings/DrawningArtilleryUnit.cs b/ArtilleryUnit/ArtilleryUnit/Drawnings/DrawningArtilleryUnit.cs index 6f1b529..9fdaf6e 100644 --- a/ArtilleryUnit/ArtilleryUnit/Drawnings/DrawningArtilleryUnit.cs +++ b/ArtilleryUnit/ArtilleryUnit/Drawnings/DrawningArtilleryUnit.cs @@ -204,27 +204,32 @@ public class DrawningArtilleryUnit { return; } - Pen pen = new(EntityArtilleryUnit.BodyColor, 2); - Brush additionalBrush = new SolidBrush(Color.Black); + Pen pen = new(Color.Black, 2); + Pen pen2 = new(Color.Black, 3); + Brush Brush = new SolidBrush(EntityArtilleryUnit.BodyColor); - //границы круисера - g.DrawLine(pen, _startPosX.Value, _startPosY.Value, _startPosX.Value + 105, _startPosY.Value); - g.DrawLine(pen, _startPosX.Value + 105, _startPosY.Value, _startPosX.Value + 147, _startPosY.Value + 24); + //границы танка + Point[] points = { new Point(_startPosX.Value + 60, _startPosY.Value + 6), new Point(_startPosX.Value + 110, _startPosY.Value + 6), new Point(_startPosX.Value + 110, _startPosY.Value + 11), new Point(_startPosX.Value + 80, _startPosY.Value + 21), new Point(_startPosX.Value + 60, _startPosY.Value + 21), new Point(_startPosX.Value + 45, _startPosY.Value + 16), new Point(_startPosX.Value + 45, _startPosY.Value + 11) }; + g.FillPolygon(Brush, points); + g.DrawPolygon(pen, points); - g.DrawLine(pen, _startPosX.Value, _startPosY.Value + 49, _startPosX.Value + 105, _startPosY.Value + 49); - g.DrawLine(pen, _startPosX.Value + 105, _startPosY.Value + 49, _startPosX.Value + 147, _startPosY.Value + 24); + g.FillRectangle(Brush, _startPosX.Value + 7, _startPosY.Value + 21, 132, 10); + g.DrawRectangle(pen, _startPosX.Value + 7, _startPosY.Value + 21, 132, 10); - g.DrawLine(pen, _startPosX.Value, _startPosY.Value, _startPosX.Value, _startPosY.Value + 49); - //внутренности круисера - g.DrawEllipse(pen, _startPosX.Value + 94, _startPosY.Value + 14, 19, 19); - - g.DrawRectangle(pen, _startPosX.Value + 63, _startPosY.Value + 11, 21, 28); - g.DrawRectangle(pen, _startPosX.Value + 35, _startPosY.Value + 17, 28, 14); - - //зад - g.FillRectangle(additionalBrush, _startPosX.Value - 3, _startPosY.Value + 7, 3, 14); - g.FillRectangle(additionalBrush, _startPosX.Value - 3, _startPosY.Value + 26, 3, 14); + g.DrawArc(pen, _startPosX.Value, _startPosY.Value + 6 + 22, 25, 25, 70, 200); + g.DrawArc(pen, _startPosX.Value + 122, _startPosY.Value + 28, 25, 25, 260, 200); + g.DrawLine(pen, _startPosX.Value + 10, _startPosY.Value + 29, _startPosX.Value + 135, _startPosY.Value + 29); + g.DrawLine(pen, _startPosX.Value + 10, _startPosY.Value + 53, _startPosX.Value + 135, _startPosY.Value + 53); + g.DrawEllipse(pen2, _startPosX.Value + 5, _startPosY.Value + 31, 18, 18); + g.DrawEllipse(pen2, _startPosX.Value + 125, _startPosY.Value + 31, 18, 18); + g.DrawEllipse(pen2, _startPosX.Value + 103, _startPosY.Value + 37, 12, 12); + g.DrawEllipse(pen2, _startPosX.Value + 34, _startPosY.Value + 37, 12, 12); + g.DrawEllipse(pen2, _startPosX.Value + 57, _startPosY.Value + 37, 12, 12); + g.DrawEllipse(pen2, _startPosX.Value + 80, _startPosY.Value + 37, 12, 12); + g.DrawArc(pen, _startPosX.Value + 47, _startPosY.Value + 24, 10, 10, 0, 170); + g.DrawArc(pen, _startPosX.Value + 70, _startPosY.Value + 24, 10, 10, 0, 170); + g.DrawArc(pen, _startPosX.Value + 93, _startPosY.Value + 24, 10, 10, 0, 170); } } \ No newline at end of file