First lab brench
This commit is contained in:
parent
f898ad65b4
commit
c141ffc95e
@ -179,7 +179,6 @@
|
|||||||
Brush bodyBrush = new SolidBrush(EntityLocomotive.BodyColor);
|
Brush bodyBrush = new SolidBrush(EntityLocomotive.BodyColor);
|
||||||
Brush blackBrush = new SolidBrush(Color.Black);
|
Brush blackBrush = new SolidBrush(Color.Black);
|
||||||
Brush whiteBrush = new SolidBrush(Color.White);
|
Brush whiteBrush = new SolidBrush(Color.White);
|
||||||
|
|
||||||
//границы тепловоза
|
//границы тепловоза
|
||||||
DrawPolygon(g, pen, bodyBrush,
|
DrawPolygon(g, pen, bodyBrush,
|
||||||
_startPosX.Value, _startPosY.Value,
|
_startPosX.Value, _startPosY.Value,
|
||||||
@ -190,7 +189,6 @@
|
|||||||
g.FillRectangle(additionalBrush, _startPosX.Value, _startPosY.Value + 20, 110, 20);
|
g.FillRectangle(additionalBrush, _startPosX.Value, _startPosY.Value + 20, 110, 20);
|
||||||
g.DrawRectangle(pen, _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);
|
g.FillRectangle(blackBrush, _startPosX.Value - 5, _startPosY.Value + 5, 5, 30);
|
||||||
|
|
||||||
//шасси
|
//шасси
|
||||||
DrawPolygon(g, pen, blackBrush,
|
DrawPolygon(g, pen, blackBrush,
|
||||||
_startPosX.Value - 5, _startPosY.Value + 45,
|
_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 + 85, _startPosY.Value + 5, 10, 10);
|
||||||
g.DrawRectangle(pen, _startPosX.Value + 70, _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);
|
g.DrawRectangle(pen, _startPosX.Value + 5, _startPosY.Value + 5, 10, 10);
|
||||||
|
|
||||||
//труба
|
//труба
|
||||||
if (EntityLocomotive.ExehaustPipe)
|
if (EntityLocomotive.ExehaustPipe)
|
||||||
{
|
{
|
||||||
@ -229,7 +226,7 @@
|
|||||||
g.FillRectangle(greyBrush, _startPosX.Value + 80, _startPosY.Value - 10, 5, 10);
|
g.FillRectangle(greyBrush, _startPosX.Value + 80, _startPosY.Value - 10, 5, 10);
|
||||||
g.DrawRectangle(pen, _startPosX.Value + 80, _startPosY.Value - 10, 5, 10);
|
g.DrawRectangle(pen, _startPosX.Value + 80, _startPosY.Value - 10, 5, 10);
|
||||||
}
|
}
|
||||||
|
// отсек для топлива
|
||||||
if (EntityLocomotive.FuelCompartment)
|
if (EntityLocomotive.FuelCompartment)
|
||||||
{
|
{
|
||||||
g.FillRectangle(bodyBrush, _startPosX.Value + 20, _startPosY.Value + 10, 10, 20);
|
g.FillRectangle(bodyBrush, _startPosX.Value + 20, _startPosY.Value + 10, 10, 20);
|
||||||
|
Loading…
Reference in New Issue
Block a user