This commit is contained in:
Слава 2024-06-03 03:28:18 +04:00
parent 6e8b05a39e
commit 84f9bc92c4

View File

@ -38,38 +38,53 @@ namespace ProjectPlane.Drawnings
return; return;
} }
Pen pen = new(entitySeaPlane.BodyColor, 2); Pen pen3 = new(EntityPlane.BodyColor, 2);
Brush additionalBrush = new SolidBrush(Color.Black); Pen pen = new(Color.Black, 2);
Brush floatsBrush = new SolidBrush(Color.Black); Pen pen5 = new(Color.Black, 4);
Brush floatsBrush2 = new SolidBrush(entitySeaPlane.AdditionalColor); Pen pen2 = new(Color.Black, 6);
Brush lineBrush = new HatchBrush(HatchStyle.ZigZag, entitySeaPlane.AdditionalColor, Color.FromArgb(163, 163, 163)); Pen pen4 = new(Color.White, 4);
Brush boatBrush = new SolidBrush(entitySeaPlane.AdditionalColor); 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); 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) if (entitySeaPlane.Line)
{ {
g.FillEllipse(lineBrush, _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.DrawEllipse(pen, _startPosX.Value + 5, _startPosY.Value + 9, 25, 30); 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) if (entitySeaPlane.Floats)
{ {
g.DrawEllipse(pen, _startPosX.Value + 97, _startPosY.Value + 36, 10, 10); 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.FillEllipse(floatsBrush2, _startPosX.Value + 97, _startPosY.Value + 36, 10, 10); g.FillPolygon(additionalBrush, points4);
g.DrawPolygon(pen, points4);
g.FillRectangle(floatsBrush, _startPosX.Value + 107, _startPosY.Value + 40, 15, 5); 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);
}
} }
} }
} }