сразу поправил прорисовку (теперь все гуд)
This commit is contained in:
parent
68cba3d6a4
commit
c20e24d2ed
@ -35,6 +35,18 @@ public class DrawningContainerShip : DrawningShip
|
||||
base.DrawTransport(g);
|
||||
_startPosX -= 5;
|
||||
_startPosY -= 30;
|
||||
|
||||
// контейнеры
|
||||
if (containerShip.Container)
|
||||
{
|
||||
g.DrawRectangle(pen, _startPosX.Value + 60, _startPosY.Value + 55, 40, 5);
|
||||
g.FillRectangle(additionalBrush, _startPosX.Value + 60, _startPosY.Value + 55, 40, 5);
|
||||
g.DrawRectangle(pen, _startPosX.Value + 60, _startPosY.Value + 50, 40, 5);
|
||||
g.FillRectangle(additionalBrush, _startPosX.Value + 60, _startPosY.Value + 50, 40, 5);
|
||||
g.DrawRectangle(pen, _startPosX.Value + 60, _startPosY.Value + 45, 40, 5);
|
||||
g.FillRectangle(additionalBrush, _startPosX.Value + 60, _startPosY.Value + 45, 40, 5);
|
||||
}
|
||||
|
||||
// кран
|
||||
if (containerShip.Crane)
|
||||
{
|
||||
@ -47,21 +59,6 @@ public class DrawningContainerShip : DrawningShip
|
||||
|
||||
}
|
||||
|
||||
|
||||
//base.DrawTransport(g);
|
||||
|
||||
|
||||
// контейнеры
|
||||
if (containerShip.Container)
|
||||
{
|
||||
g.DrawRectangle(pen, _startPosX.Value + 60, _startPosY.Value + 55, 40, 5);
|
||||
g.FillRectangle(additionalBrush, _startPosX.Value + 60, _startPosY.Value + 55, 40, 5);
|
||||
g.DrawRectangle(pen, _startPosX.Value + 60, _startPosY.Value + 50, 40, 5);
|
||||
g.FillRectangle(additionalBrush, _startPosX.Value + 60, _startPosY.Value + 50, 40, 5);
|
||||
g.DrawRectangle(pen, _startPosX.Value + 60, _startPosY.Value + 45, 40, 5);
|
||||
g.FillRectangle(additionalBrush, _startPosX.Value + 60, _startPosY.Value + 45, 40, 5);
|
||||
}
|
||||
//base.DrawTransport(g);
|
||||
_startPosX += 5;
|
||||
_startPosY += 30;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user