This commit is contained in:
RavilGismatullin 2024-02-17 22:45:50 +03:00
parent ac2f899de2
commit f1f1ee5917
3 changed files with 12 additions and 13 deletions

View File

@ -39,9 +39,8 @@ namespace Bulldoser.Drawings
}
if (Bulldoser.SeifBatteries)
{
g.FillRectangle(additionalBrush, _startPosX + 155, _startPosY + 65, 40, 10);
g.FillRectangle(additionalBrush, _startPosX + 185, _startPosY + 75, 5, 30);
g.FillRectangle(additionalBrush, _startPosX + 175, _startPosY + 75, 5, 30);
g.FillRectangle(additionalBrush, _startPosX + 130, _startPosY + 65, 25, 10);
g.FillRectangle(additionalBrush, _startPosX + 150, _startPosY + 75, 5, 30);
}
base.DrawTransport(g);

View File

@ -120,23 +120,22 @@ namespace Bulldoser.Drawings
Brush grayBrush = new SolidBrush(Color.Gray);
//кузов
g.FillRectangle(bodyColor, _startPosX + 35, _startPosY + 35, 120, 40);
g.FillRectangle(bodyColor, _startPosX + 95, _startPosY + 0, 5, 35);
g.FillRectangle(bodyColor, _startPosX + 150, _startPosY + 0, 5, 35);
g.FillRectangle(bodyColor, _startPosX + 95, _startPosY + 0, 60, 5);
g.FillRectangle(bodyColor, _startPosX + 35, _startPosY + 35, 100, 40);
g.FillRectangle(bodyColor, _startPosX + 75, _startPosY + 0, 5, 35);
g.FillRectangle(bodyColor, _startPosX + 130, _startPosY + 0, 5, 35);
g.FillRectangle(bodyColor, _startPosX + 75, _startPosY + 0, 60, 5);
//труба
g.FillRectangle(bodyColor, _startPosX + 55, _startPosY + 5, 10, 30);
//кабина
g.FillRectangle(windows, _startPosX + 100, _startPosY + 5, 50, 30);
g.FillRectangle(windows, _startPosX + 80, _startPosY + 5, 50, 30);
//гусеницы
g.FillEllipse(blackBrush, _startPosX + 25, _startPosY + 75, 30, 30);
g.FillEllipse(blackBrush, _startPosX + 135, _startPosY + 75, 30, 30);
g.FillRectangle(blackBrush, _startPosX + 35, _startPosY + 75, 120, 30);
g.FillEllipse(blackBrush, _startPosX + 115, _startPosY + 75, 30, 30);
g.FillRectangle(blackBrush, _startPosX + 35, _startPosY + 75, 100, 30);
g.FillEllipse(grayBrush, _startPosX + 28, _startPosY + 78, 25, 25);
g.FillEllipse(grayBrush, _startPosX + 138, _startPosY + 78, 25, 25);
g.FillEllipse(grayBrush, _startPosX + 118, _startPosY + 78, 25, 25);
g.FillEllipse(grayBrush, _startPosX + 58, _startPosY + 90, 15, 15);
g.FillEllipse(grayBrush, _startPosX + 88, _startPosY + 90, 15, 15);
g.FillEllipse(grayBrush, _startPosX + 118, _startPosY + 90, 15, 15);
g.FillEllipse(grayBrush, _startPosX + 78, _startPosY + 78, 10, 10);
g.FillEllipse(grayBrush, _startPosX + 105, _startPosY + 78, 10, 10);

View File

@ -84,9 +84,10 @@ namespace Bulldoser.Generic
var obj = _collection[i];
// Установка позиции
obj?.SetPosition(
//переделать позиции
(int)((width - 1) * _placeSizeWidth - (i % width * _placeSizeWidth)),
(int)((height - 1) * _placeSizeHeight - (i / width * _placeSizeHeight))
);
) ;
// Прорисовка объекта
obj?.DrawTransport(g);
}