Корректировка отрисовки
This commit is contained in:
parent
5f13bd979f
commit
dc22cb7830
@ -174,43 +174,41 @@ public class DrawningGasolineTanker
|
||||
|
||||
// Границы бензовоза
|
||||
|
||||
g.DrawRectangle(pen, _startPosX.Value + 120, _startPosY.Value + 20, 25, 25);
|
||||
g.DrawRectangle(pen, _startPosX.Value + 115, _startPosY.Value + 15, 40, 40);
|
||||
g.DrawRectangle(pen, _startPosX.Value + 25, _startPosY.Value + 55, 130, 15);
|
||||
g.DrawRectangle(pen, _startPosX.Value + 95, _startPosY.Value + 15, 25, 25);
|
||||
g.DrawRectangle(pen, _startPosX.Value + 90, _startPosY.Value + 10, 40, 40);
|
||||
g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 50, 130, 15);
|
||||
|
||||
// Колеса
|
||||
|
||||
Brush brBlack = new SolidBrush(Color.Black);
|
||||
g.FillEllipse(brBlack, _startPosX.Value + 130, _startPosY.Value + 70, 25, 25);
|
||||
g.FillEllipse(brBlack, _startPosX.Value + 30, _startPosY.Value + 70, 25, 25);
|
||||
g.FillEllipse(brBlack, _startPosX.Value + 55, _startPosY.Value + 70, 25, 25);
|
||||
g.FillEllipse(brBlack, _startPosX.Value + 105, _startPosY.Value + 65, 25, 25);
|
||||
g.FillEllipse(brBlack, _startPosX.Value + 5, _startPosY.Value + 65, 25, 25);
|
||||
g.FillEllipse(brBlack, _startPosX.Value + 30, _startPosY.Value + 65, 25, 25);
|
||||
|
||||
// Кузов
|
||||
|
||||
Brush br = new SolidBrush(EntityGasolineTanker.BodyColor);
|
||||
g.FillRectangle(br, _startPosX.Value + 115, _startPosY.Value + 15, 40, 40);
|
||||
g.FillRectangle(br, _startPosX.Value + 25, _startPosY.Value + 55, 130, 15);
|
||||
g.FillRectangle(br, _startPosX.Value + 91, _startPosY.Value + 11, 39, 39);
|
||||
g.FillRectangle(br, _startPosX.Value + 1, _startPosY.Value + 51, 129, 14);
|
||||
|
||||
// Стекло
|
||||
|
||||
Brush brBlue = new SolidBrush(Color.LightBlue);
|
||||
g.FillRectangle(brBlue, _startPosX.Value + 120, _startPosY.Value + 20, 25, 25);
|
||||
g.FillRectangle(brBlue, _startPosX.Value + 95, _startPosY.Value + 15, 25, 25);
|
||||
|
||||
// Цистерна
|
||||
|
||||
if (EntityGasolineTanker.Cistern)
|
||||
{
|
||||
g.FillRectangle(additionalBrush, _startPosX.Value + 25, _startPosY.Value + 15, 90, 40);
|
||||
g.FillRectangle(additionalBrush, _startPosX.Value + 80, _startPosY.Value + 10, 10, 5);
|
||||
}
|
||||
|
||||
g.FillRectangle(additionalBrush, _startPosX.Value, _startPosY.Value + 10, 90, 40);
|
||||
g.FillRectangle(additionalBrush, _startPosX.Value + 55, _startPosY.Value + 5, 10, 5);
|
||||
}
|
||||
|
||||
// Сигнальный маячок
|
||||
|
||||
if (EntityGasolineTanker.SignalBeacon)
|
||||
{
|
||||
g.FillRectangle(additionalBrush, _startPosX.Value + 145, _startPosY.Value + 5, 10, 10);
|
||||
g.FillRectangle(additionalBrush, _startPosX.Value + 120, _startPosY.Value, 10, 10);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user