WIP: Pibd11_Kirilin_V.A._Base_LabWork01 #1

Closed
Vladislav_396ntk wants to merge 3 commits from LabWork01 into main
Showing only changes of commit c141ffc95e - Show all commits

View File

@ -179,7 +179,6 @@
Brush bodyBrush = new SolidBrush(EntityLocomotive.BodyColor);
Brush blackBrush = new SolidBrush(Color.Black);
Brush whiteBrush = new SolidBrush(Color.White);
//границы тепловоза
DrawPolygon(g, pen, bodyBrush,
_startPosX.Value, _startPosY.Value,
@ -190,7 +189,6 @@
g.FillRectangle(additionalBrush, _startPosX.Value, _startPosY.Value + 20, 110, 20);
g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 20, 110, 20);
g.FillRectangle(blackBrush, _startPosX.Value - 5, _startPosY.Value + 5, 5, 30);
//шасси
DrawPolygon(g, pen, blackBrush,
_startPosX.Value - 5, _startPosY.Value + 45,
@ -221,7 +219,6 @@
g.DrawRectangle(pen, _startPosX.Value + 85, _startPosY.Value + 5, 10, 10);
g.DrawRectangle(pen, _startPosX.Value + 70, _startPosY.Value + 5, 10, 10);
g.DrawRectangle(pen, _startPosX.Value + 5, _startPosY.Value + 5, 10, 10);
//труба
if (EntityLocomotive.ExehaustPipe)
{
@ -229,7 +226,7 @@
g.FillRectangle(greyBrush, _startPosX.Value + 80, _startPosY.Value - 10, 5, 10);
g.DrawRectangle(pen, _startPosX.Value + 80, _startPosY.Value - 10, 5, 10);
}
// отсек для топлива
if (EntityLocomotive.FuelCompartment)
{
g.FillRectangle(bodyBrush, _startPosX.Value + 20, _startPosY.Value + 10, 10, 20);