убрал лишний предмет

This commit is contained in:
Cat-pranks 2024-03-06 14:00:59 +04:00
parent 1ed3ddbdbd
commit 373a50c33e

View File

@ -171,8 +171,7 @@ public class DrawningBus
{ {
if (EntityBus == null || !_startPosX.HasValue || !_startPosY.HasValue) if (EntityBus == null || !_startPosX.HasValue || !_startPosY.HasValue)
return; return;
//диски //диски
Brush brWhite = new SolidBrush(Color.White); Brush brWhite = new SolidBrush(Color.White);
g.FillEllipse(brWhite, _startPosX.Value, _startPosY.Value + 25, 20, 15); g.FillEllipse(brWhite, _startPosX.Value, _startPosY.Value + 25, 20, 15);
@ -182,13 +181,12 @@ public class DrawningBus
g.FillEllipse(brWheel, _startPosX.Value + 50, _startPosY.Value + 25, 20, 15); g.FillEllipse(brWheel, _startPosX.Value + 50, _startPosY.Value + 25, 20, 15);
g.FillEllipse(brWheel, _startPosX.Value + 110, _startPosY.Value + 25, 20, 15); g.FillEllipse(brWheel, _startPosX.Value + 110, _startPosY.Value + 25, 20, 15);
g.FillEllipse(brWheel, _startPosX.Value + 160, _startPosY.Value + 25, 20, 15); g.FillEllipse(brWheel, _startPosX.Value + 160, _startPosY.Value + 25, 20, 15);
//кузов //кузов
Brush br = new SolidBrush(EntityBus.BodyColor); Brush br = new SolidBrush(EntityBus.BodyColor);
g.FillRectangle(br, _startPosX.Value, _startPosY.Value, 70, 30); g.FillRectangle(br, _startPosX.Value, _startPosY.Value, 70, 30);
g.FillRectangle(br, _startPosX.Value + 110, _startPosY.Value, 70, 30); g.FillRectangle(br, _startPosX.Value + 110, _startPosY.Value, 70, 30);
g.FillRectangle(br, _startPosX.Value +70, _startPosY.Value, 40, 30);
g.DrawRectangle(new Pen(Color.Black), _startPosX.Value, _startPosY.Value, 70, 30); g.DrawRectangle(new Pen(Color.Black), _startPosX.Value, _startPosY.Value, 70, 30);
g.DrawRectangle(new Pen(Color.Black), _startPosX.Value + 110, _startPosY.Value, 70, 30); g.DrawRectangle(new Pen(Color.Black), _startPosX.Value + 110, _startPosY.Value, 70, 30);
@ -197,6 +195,7 @@ public class DrawningBus
g.DrawEllipse(penWheel, _startPosX.Value + 50, _startPosY.Value + 25, 20, 15); g.DrawEllipse(penWheel, _startPosX.Value + 50, _startPosY.Value + 25, 20, 15);
g.DrawEllipse(penWheel, _startPosX.Value + 110, _startPosY.Value + 25, 20, 15); g.DrawEllipse(penWheel, _startPosX.Value + 110, _startPosY.Value + 25, 20, 15);
g.DrawEllipse(penWheel, _startPosX.Value + 160, _startPosY.Value + 25, 20, 15); g.DrawEllipse(penWheel, _startPosX.Value + 160, _startPosY.Value + 25, 20, 15);
//двери //двери
Brush brDoor = new SolidBrush(Color.Black); Brush brDoor = new SolidBrush(Color.Black);
g.FillRectangle(brDoor, _startPosX.Value + 45, _startPosY.Value + 10, 5, 20); g.FillRectangle(brDoor, _startPosX.Value + 45, _startPosY.Value + 10, 5, 20);