Изменено: рандомные провода и отсек

This commit is contained in:
ekallin 2023-09-13 09:29:33 +04:00
parent 8a9112530c
commit 925981ec50
2 changed files with 15 additions and 20 deletions

View File

@ -103,22 +103,7 @@ namespace ElectricLocomotive
g.DrawLine(pen, _startPosX + 50, _startPosY + 10, _startPosX + 40, _startPosY);
}
if (EntityElectricLocomotive.Seifbatteries)
{
//g.DrawRectangle(pen, _startPosX + 50, _startPosY + 25, 20, 10);
g.DrawPolygon(pen, new Point[]
{
new Point(_startPosX + 40, _startPosY + 25),
new Point(_startPosX + 65, _startPosY + 25),
new Point(_startPosX + 65, _startPosY + 35),
new Point(_startPosX + 40, _startPosY + 35),
new Point(_startPosX + 40, _startPosY + 25),
}
);
}
//локомотив
g.FillPolygon(bodyColor, new Point[]
{
new Point(_startPosX, _startPosY + 40),
@ -133,6 +118,19 @@ namespace ElectricLocomotive
}
);
if (EntityElectricLocomotive.Seifbatteries)
{
g.DrawPolygon(pen, new Point[]
{
new Point(_startPosX + 40, _startPosY + 25),
new Point(_startPosX + 65, _startPosY + 25),
new Point(_startPosX + 65, _startPosY + 35),
new Point(_startPosX + 40, _startPosY + 35),
new Point(_startPosX + 40, _startPosY + 25),
}
);
}
g.DrawPolygon(pen, new Point[]
{
new Point(_startPosX, _startPosY + 40),
@ -148,7 +146,6 @@ namespace ElectricLocomotive
);
//окошки
g.FillPolygon(windows, new Point[]
{
new Point(_startPosX + 10, _startPosY + 30),
@ -172,7 +169,7 @@ namespace ElectricLocomotive
g.FillRectangle(windows, _startPosX + 25, _startPosY + 25, 10, 5);
g.DrawRectangle(pen, _startPosX + 25, _startPosY + 25, 10, 5);
//лбязательные колеса
//обязательные колеса
//loco
g.FillEllipse(blackBrush, _startPosX + 10, _startPosY + 45, 5, 5);
g.FillEllipse(blackBrush, _startPosX + 25, _startPosY + 45, 5, 5);
@ -187,7 +184,7 @@ namespace ElectricLocomotive
g.FillEllipse(blackBrush, _startPosX + 105, _startPosY + 45, 5, 5);
//telejka
g.FillPolygon(bodyColor, new Point[]
g.FillPolygon(additionalBrush, new Point[]
{
new Point(_startPosX + 90, _startPosY + 25),
new Point(_startPosX + 95, _startPosY + 20),
@ -212,7 +209,6 @@ namespace ElectricLocomotive
);
g.DrawLine(pen, _startPosX + 80, _startPosY + 40, _startPosX + 90, _startPosY + 40);
g.FillRectangle(windows, _startPosX + 95, _startPosY + 30, 10, 5);
g.FillRectangle(windows, _startPosX + 115, _startPosY + 30, 10, 5);
g.FillRectangle(windows, _startPosX + 135, _startPosY + 30, 10, 5);

View File

@ -56,7 +56,6 @@ namespace ElectricLocomotive
break;
}
Draw();
}
}
}