From 84f9bc92c46481b788562d46c6dd520412aee351 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BB=D0=B0=D0=B2=D0=B0?= Date: Mon, 3 Jun 2024 03:28:18 +0400 Subject: [PATCH] s --- .../Drawnings/DrawningMilitaryCruiser.cs | 55 ++++++++++++------- 1 file changed, 35 insertions(+), 20 deletions(-) diff --git a/ProjectPlane/ProjectPlane/Drawnings/DrawningMilitaryCruiser.cs b/ProjectPlane/ProjectPlane/Drawnings/DrawningMilitaryCruiser.cs index 5c739a3..dcdf3c2 100644 --- a/ProjectPlane/ProjectPlane/Drawnings/DrawningMilitaryCruiser.cs +++ b/ProjectPlane/ProjectPlane/Drawnings/DrawningMilitaryCruiser.cs @@ -38,38 +38,53 @@ namespace ProjectPlane.Drawnings return; } - Pen pen = new(entitySeaPlane.BodyColor, 2); - Brush additionalBrush = new SolidBrush(Color.Black); - Brush floatsBrush = new SolidBrush(Color.Black); - Brush floatsBrush2 = new SolidBrush(entitySeaPlane.AdditionalColor); - Brush lineBrush = new HatchBrush(HatchStyle.ZigZag, entitySeaPlane.AdditionalColor, Color.FromArgb(163, 163, 163)); - Brush boatBrush = new SolidBrush(entitySeaPlane.AdditionalColor); + Pen pen3 = new(EntityPlane.BodyColor, 2); + Pen pen = new(Color.Black, 2); + Pen pen5 = new(Color.Black, 4); + Pen pen2 = new(Color.Black, 6); + Pen pen4 = new(Color.White, 4); + Pen pen6 = new(Color.Black, 1); + Brush Brush = new SolidBrush(EntityPlane.BodyColor); + Brush Brush2 = new SolidBrush(Color.Black); + Brush glassBrush = new SolidBrush(Color.SkyBlue); + Brush glassBrush2 = new SolidBrush(entitySeaPlane.AdditionalColor); + Brush boatBrush = new HatchBrush(HatchStyle.ZigZag, entitySeaPlane.AdditionalColor, Color.FromArgb(163, 163, 163)); + Brush additionalBrush = new SolidBrush(entitySeaPlane.AdditionalColor); base.DrawTransport(g); + //внутренности самолета + + //g.DrawRectangle(pen, _startPosX.Value + 25, _startPosY.Value + 10, 80, 30); + //g.FillRectangle(additionalBrush, _startPosX.Value + 25, _startPosY.Value + 10, 80, 30); + + + + if (entitySeaPlane.Line) { - g.FillEllipse(lineBrush, _startPosX.Value + 5, _startPosY.Value + 9, 25, 30); - g.DrawEllipse(pen, _startPosX.Value + 5, _startPosY.Value + 9, 25, 30); - } + Point[] points3 = { new Point(_startPosX.Value + 35, _startPosY.Value + 15), new Point(_startPosX.Value + 20, _startPosY.Value + 15), new Point(_startPosX.Value + 10, _startPosY.Value + 20), new Point(_startPosX.Value + 10, _startPosY.Value + 25), new Point(_startPosX.Value + 15, _startPosY.Value + 30), new Point(_startPosX.Value + 145, _startPosY.Value + 20), new Point(_startPosX.Value + 140, _startPosY.Value + 20), new Point(_startPosX.Value + 140, _startPosY.Value + 10), new Point(_startPosX.Value + 135, _startPosY.Value + 20), new Point(_startPosX.Value + 30, _startPosY.Value + 20) }; + g.FillPolygon(additionalBrush, points3); + g.DrawPolygon(pen6, points3); - if (entitySeaPlane.Boat) - { - g.DrawEllipse(pen, _startPosX.Value + 34, _startPosY.Value + 2, 30, 7); - g.FillEllipse(boatBrush, _startPosX.Value + 34, _startPosY.Value + 2, 30, 7); - - g.DrawEllipse(pen, _startPosX.Value + 34, _startPosY.Value + 39, 30, 7); - g.FillEllipse(boatBrush, _startPosX.Value + 34, _startPosY.Value + 39, 30, 7); } if (entitySeaPlane.Floats) { - g.DrawEllipse(pen, _startPosX.Value + 97, _startPosY.Value + 36, 10, 10); - g.FillEllipse(floatsBrush2, _startPosX.Value + 97, _startPosY.Value + 36, 10, 10); - - g.FillRectangle(floatsBrush, _startPosX.Value + 107, _startPosY.Value + 40, 15, 5); + Point[] points4 = { new Point(_startPosX.Value + 10, _startPosY.Value + 40), new Point(_startPosX.Value + 110, _startPosY.Value + 40), new Point(_startPosX.Value + 110, _startPosY.Value + 41), new Point(_startPosX.Value + 70, _startPosY.Value + 50), new Point(_startPosX.Value + 30, _startPosY.Value + 50) }; + g.FillPolygon(additionalBrush, points4); + g.DrawPolygon(pen, points4); + g.DrawLine(pen, _startPosX.Value + 30, _startPosY.Value + 45, _startPosX.Value + 80, _startPosY.Value + 45); } + if (entitySeaPlane.Boat) + { + g.DrawRectangle(pen, _startPosX.Value + 85, _startPosY.Value + 15, 25, 10); + g.FillRectangle(boatBrush, _startPosX.Value + 85, _startPosY.Value + 15, 25, 10); + Point[] points5 = { new Point(_startPosX.Value + 80, _startPosY.Value + 15), new Point(_startPosX.Value + 85, _startPosY.Value + 10), new Point(_startPosX.Value + 115, _startPosY.Value + 10), new Point(_startPosX.Value + 115, _startPosY.Value + 15), new Point(_startPosX.Value + 85, _startPosY.Value + 15), new Point(_startPosX.Value + 85, _startPosY.Value + 25), new Point(_startPosX.Value + 115, _startPosY.Value + 25), new Point(_startPosX.Value + 115, _startPosY.Value + 30), new Point(_startPosX.Value + 85, _startPosY.Value + 30), new Point(_startPosX.Value + 80, _startPosY.Value + 25) }; + g.FillPolygon(additionalBrush, points5); + g.DrawPolygon(pen, points5); + } } } }