Перерисовка
This commit is contained in:
parent
c95892c5c3
commit
907be7656b
@ -122,26 +122,26 @@
|
||||
|
||||
PointF[] P =
|
||||
{
|
||||
new Point((int)(_startPosX),(int) _startPosY + 45),
|
||||
new Point((int)_startPosX + 170, (int)_startPosY + 45),
|
||||
new Point((int)(_startPosX),(int) _startPosY + 35),
|
||||
new Point((int)_startPosX + 170, (int)_startPosY + 35),
|
||||
new Point( (int) _startPosX + 150,(int) _startPosY + 65),
|
||||
new Point((int) _startPosX + 50, (int) _startPosY + 65),
|
||||
new Point((int) _startPosX, (int) _startPosY + 45),
|
||||
new Point((int) _startPosX, (int) _startPosY + 35),
|
||||
|
||||
};
|
||||
Brush br = new SolidBrush(Ship?.BodyColor ?? Color.Black);
|
||||
g.FillPolygon(br, P);
|
||||
|
||||
Brush brBlue = new SolidBrush(Color.LightBlue);
|
||||
g.FillRectangle(brBlue, _startPosX + 70, _startPosY + 20, 70, 25);
|
||||
g.FillRectangle(brBlue, _startPosX + 70, _startPosY + 1, 70, 34);
|
||||
|
||||
Pen pen = new(Color.Black);
|
||||
//границы коробля
|
||||
g.DrawRectangle(pen, _startPosX + 70, _startPosY + 20 , 70, 25);
|
||||
g.DrawLine(pen, _startPosX, _startPosY + 45, _startPosX + 170, _startPosY + 45);
|
||||
g.DrawLine(pen, _startPosX, _startPosY + 45, _startPosX + 50, _startPosY + 65);
|
||||
g.DrawRectangle(pen, _startPosX + 70, _startPosY + 1 , 70, 34);
|
||||
g.DrawLine(pen, _startPosX, _startPosY + 35, _startPosX + 170, _startPosY + 35);
|
||||
g.DrawLine(pen, _startPosX, _startPosY + 35, _startPosX + 50, _startPosY + 65);
|
||||
g.DrawLine(pen, _startPosX + 50, _startPosY + 65, _startPosX + 150, _startPosY + 65);
|
||||
g.DrawLine(pen, _startPosX + 150, _startPosY + 65, _startPosX + 170, _startPosY + 45);
|
||||
g.DrawLine(pen, _startPosX + 150, _startPosY + 65, _startPosX + 170, _startPosY + 35);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user