Рога и батарея на троллейбусе в виде мода
This commit is contained in:
parent
9db213aec2
commit
37f598f718
@ -24,38 +24,35 @@ namespace Trolleybus
|
||||
|
||||
Pen pen = new Pen(Color.Black);
|
||||
Brush dopBrush = new SolidBrush(smallTrolleybus.DopColor);
|
||||
Brush brBlue = new SolidBrush(Color.LightBlue);
|
||||
Brush dBlue = new SolidBrush(Color.DarkBlue);
|
||||
Brush bWhite = new SolidBrush(Color.White);
|
||||
Pen WinBlue = new Pen(Color.Blue);
|
||||
|
||||
_startPosY = _startPosY + 100;
|
||||
|
||||
if (smallTrolleybus.BodyKit)
|
||||
{
|
||||
g.DrawEllipse(pen, _startPosX + 90, _startPosY, 20, 20);
|
||||
g.DrawEllipse(pen, _startPosX + 90, _startPosY + 40, 20, 20);
|
||||
g.DrawRectangle(pen, _startPosX + 90, _startPosY + 10, 20, 40);
|
||||
g.DrawRectangle(pen, _startPosX + 90, _startPosY, 15, 15);
|
||||
g.DrawRectangle(pen, _startPosX + 90, _startPosY + 45, 15, 15);
|
||||
|
||||
g.FillEllipse(dopBrush, _startPosX + 90, _startPosY, 20, 20);
|
||||
g.FillEllipse(dopBrush, _startPosX + 90, _startPosY + 40, 20, 20);
|
||||
g.FillRectangle(dopBrush, _startPosX + 90, _startPosY + 10, 20, 40);
|
||||
g.FillRectangle(dopBrush, _startPosX + 90, _startPosY + 1, 15, 15);
|
||||
g.FillRectangle(dopBrush, _startPosX + 90, _startPosY + 45, 15, 15);
|
||||
|
||||
g.DrawEllipse(pen, _startPosX, _startPosY, 20, 20);
|
||||
g.DrawEllipse(pen, _startPosX, _startPosY + 40, 20, 20);
|
||||
g.DrawRectangle(pen, _startPosX, _startPosY + 10, 20, 40);
|
||||
g.DrawRectangle(pen, _startPosX + 5, _startPosY, 14, 15);
|
||||
g.DrawRectangle(pen, _startPosX + 5, _startPosY + 45, 14, 15);
|
||||
|
||||
g.FillEllipse(dopBrush, _startPosX, _startPosY, 20, 20);
|
||||
g.FillEllipse(dopBrush, _startPosX, _startPosY + 40, 20, 20);
|
||||
g.FillRectangle(dopBrush, _startPosX + 1, _startPosY + 10, 25, 40);
|
||||
g.FillRectangle(dopBrush, _startPosX + 5, _startPosY + 1, 15, 15);
|
||||
g.FillRectangle(dopBrush, _startPosX + 5, _startPosY + 45, 15, 15);
|
||||
|
||||
g.DrawRectangle(pen, _startPosX + 35, _startPosY, 39, 15);
|
||||
g.DrawRectangle(pen, _startPosX + 35, _startPosY + 45, 39, 15);
|
||||
|
||||
g.FillRectangle(dopBrush, _startPosX + 35, _startPosY + 1, 40, 15);
|
||||
g.FillRectangle(dopBrush, _startPosX + 35, _startPosY + 45, 40, 15);
|
||||
g.DrawRectangle(pen, _startPosX, _startPosY, 200, 50);
|
||||
g.DrawRectangle(pen, _startPosX + 100, _startPosY + 10, 20, 40);
|
||||
g.FillEllipse(brBlue, _startPosX, _startPosY + 5, 20, 25);
|
||||
g.DrawEllipse(WinBlue, _startPosX, _startPosY + 5, 20, 25);
|
||||
g.FillEllipse(brBlue, _startPosX + 25, _startPosY + 5, 20, 25);
|
||||
g.DrawEllipse(WinBlue, _startPosX + 25, _startPosY + 5, 20, 25);
|
||||
g.FillEllipse(brBlue, _startPosX + 50, _startPosY + 5, 20, 25);
|
||||
g.DrawEllipse(WinBlue, _startPosX + 50, _startPosY + 5, 20, 25);
|
||||
g.FillEllipse(brBlue, _startPosX + 75, _startPosY + 5, 20, 25);
|
||||
g.DrawEllipse(WinBlue, _startPosX + 75, _startPosY + 5, 20, 25);
|
||||
g.FillEllipse(brBlue, _startPosX + 120, _startPosY + 5, 20, 25);
|
||||
g.DrawEllipse(WinBlue, _startPosX + 120, _startPosY + 5, 20, 25);
|
||||
g.FillEllipse(brBlue, _startPosX + 145, _startPosY + 5, 20, 25);
|
||||
g.DrawEllipse(WinBlue, _startPosX + 145, _startPosY + 5, 20, 25);
|
||||
g.FillEllipse(brBlue, _startPosX + 170, _startPosY + 5, 20, 25);
|
||||
g.DrawEllipse(WinBlue, _startPosX + 170, _startPosY + 5, 20, 25);
|
||||
g.FillEllipse(bWhite, _startPosX, _startPosY + 40, 30, 30);
|
||||
g.DrawEllipse(pen, _startPosX, _startPosY + 40, 30, 30);
|
||||
g.FillEllipse(bWhite, _startPosX + 170, _startPosY + 40, 30, 30);
|
||||
g.DrawEllipse(pen, _startPosX + 170, _startPosY + 40, 30, 30);
|
||||
}
|
||||
|
||||
_startPosX += 10;
|
||||
@ -64,17 +61,18 @@ namespace Trolleybus
|
||||
_startPosX -= 10;
|
||||
_startPosY -= 5;
|
||||
|
||||
if (smallTrolleybus.SportLine)
|
||||
if (smallTrolleybus.Horns)
|
||||
{
|
||||
g.FillRectangle(dopBrush, _startPosX + 76, _startPosY + 23, 24, 15);
|
||||
g.FillRectangle(dopBrush, _startPosX + 36, _startPosY + 23, 34, 15);
|
||||
g.FillRectangle(dopBrush, _startPosX + 11, _startPosY + 23, 14, 15);
|
||||
g.DrawLine(pen, _startPosX + 100, _startPosY - 10, _startPosX + 150, _startPosY - 20);
|
||||
g.DrawLine(pen, _startPosX + 150, _startPosY - 20, _startPosX, _startPosY - 30);
|
||||
//g.DrawRectangle(pen, _startPosX + 50, _startPosY - 40, 100, 20);
|
||||
g.DrawRectangle(pen, _startPosX + 50, _startPosY - 10, 100, 10);
|
||||
}
|
||||
|
||||
if (smallTrolleybus.Wing)
|
||||
{
|
||||
g.FillRectangle(dopBrush, _startPosX, _startPosY + 5, 10, 50);
|
||||
g.DrawRectangle(pen, _startPosX, _startPosY + 5, 10, 50);
|
||||
//g.FillRectangle(dopBrush, _startPosX, _startPosY + 5, 10, 50);
|
||||
//g.DrawRectangle(pen, _startPosX, _startPosY + 5, 10, 50);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ namespace Trolleybus
|
||||
/// <summary>
|
||||
/// Признак наличия гоночной полосы
|
||||
/// </summary>
|
||||
public bool SportLine { get; private set; }
|
||||
public bool Horns { get; private set; }
|
||||
/// <summary>
|
||||
/// Инициализация свойств
|
||||
/// </summary>
|
||||
@ -34,14 +34,14 @@ namespace Trolleybus
|
||||
/// <param name="dopColor">Дополнительный цвет</param>
|
||||
/// <param name="bodyKit">Признак наличия обвеса</param>
|
||||
/// <param name="wing">Признак наличия антикрыла</param>
|
||||
/// <param name="sportLine">Признак наличия гоночной полосы</param>
|
||||
public EntitySmallTrolleybus(int speed, float weight, Color bodyColor, Color dopColor, bool bodyKit, bool wing, bool sportLine) :
|
||||
/// <param name="horns">Признак наличия гоночной полосы</param>
|
||||
public EntitySmallTrolleybus(int speed, float weight, Color bodyColor, Color dopColor, bool bodyKit, bool wing, bool horns) :
|
||||
base(speed, weight, bodyColor)
|
||||
{
|
||||
DopColor = dopColor;
|
||||
BodyKit = bodyKit;
|
||||
Wing = wing;
|
||||
SportLine = sportLine;
|
||||
Horns = horns;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ namespace Trolleybus
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new FormMap());
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user