From 103a1bd902bca71a7afaf4b2ed1173cf9062bcc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B8=D0=BC=D0=B0?= Date: Wed, 22 May 2024 20:56:32 +0400 Subject: [PATCH] d --- .../Drawnings/DrawningCruiser.cs | 39 +++++++++++-------- 1 file changed, 22 insertions(+), 17 deletions(-) diff --git a/ArtilleryUnit/ArtilleryUnit/Drawnings/DrawningCruiser.cs b/ArtilleryUnit/ArtilleryUnit/Drawnings/DrawningCruiser.cs index ec7674e..46b38ce 100644 --- a/ArtilleryUnit/ArtilleryUnit/Drawnings/DrawningCruiser.cs +++ b/ArtilleryUnit/ArtilleryUnit/Drawnings/DrawningCruiser.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