с
This commit is contained in:
parent
e67b4ffcc2
commit
52ac4d0b2f
@ -38,36 +38,36 @@ namespace ProjectArtilleryUnit.Drawnings
|
||||
return;
|
||||
}
|
||||
|
||||
Pen pen = new(entityMilitaryArtilleryUnit.BodyColor, 2);
|
||||
Brush additionalBrush = new SolidBrush(Color.Black);
|
||||
Brush lukeBrush = new SolidBrush(Color.Black);
|
||||
Brush lukeBrush2 = new SolidBrush(entityMilitaryArtilleryUnit.AdditionalColor);
|
||||
Brush muzzleBrush = new HatchBrush(HatchStyle.ZigZag, entityMilitaryArtilleryUnit.AdditionalColor, Color.FromArgb(163, 163, 163));
|
||||
Brush gunBrush = new SolidBrush(entityMilitaryArtilleryUnit.AdditionalColor);
|
||||
Pen pen = new(entityMilitaryArtilleryUnit.AdditionalColor, 2);
|
||||
Pen pen2 = new(Color.Black, 2);
|
||||
Pen pen3 = new(Color.Red, 4);
|
||||
Brush additionalBrush = new SolidBrush(entityMilitaryArtilleryUnit.AdditionalColor);
|
||||
//внутренности танка
|
||||
|
||||
base.DrawTransport(g);
|
||||
|
||||
if (entityMilitaryArtilleryUnit.Muzzle)
|
||||
{
|
||||
g.FillEllipse(muzzleBrush, _startPosX.Value + 5, _startPosY.Value + 9, 25, 30);
|
||||
g.DrawEllipse(pen, _startPosX.Value + 5, _startPosY.Value + 9, 25, 30);
|
||||
g.FillRectangle(additionalBrush, _startPosX.Value + 10, _startPosY.Value + 11, 35, 3);
|
||||
g.DrawRectangle(pen2, _startPosX.Value + 10, _startPosY.Value + 11, 35, 3);
|
||||
}
|
||||
|
||||
if (entityMilitaryArtilleryUnit.Gun)
|
||||
{
|
||||
g.DrawEllipse(pen, _startPosX.Value + 34, _startPosY.Value + 2, 30, 7);
|
||||
g.FillEllipse(gunBrush, _startPosX.Value + 34, _startPosY.Value + 2, 30, 7);
|
||||
g.DrawLine(pen3, _startPosX.Value + 113, _startPosY.Value + 11, _startPosX.Value + 119, _startPosY.Value + 13);
|
||||
g.DrawLine(pen3, _startPosX.Value + 115, _startPosY.Value + 6, _startPosX.Value + 121, _startPosY.Value + 8);
|
||||
g.DrawLine(pen3, _startPosX.Value + 117, _startPosY.Value + 1, _startPosX.Value + 123, _startPosY.Value + 4);
|
||||
|
||||
Point[] points2 = { new Point(_startPosX.Value + 122, _startPosY.Value - 1), new Point(_startPosX.Value + 147, _startPosY.Value + 6), new Point(_startPosX.Value + 142, _startPosY.Value + 21), new Point(_startPosX.Value + 117, _startPosY.Value + 16) };
|
||||
g.FillPolygon(additionalBrush, points2);
|
||||
g.DrawPolygon(pen2, points2);
|
||||
|
||||
|
||||
g.DrawEllipse(pen, _startPosX.Value + 34, _startPosY.Value + 39, 30, 7);
|
||||
g.FillEllipse(gunBrush, _startPosX.Value + 34, _startPosY.Value + 39, 30, 7);
|
||||
}
|
||||
|
||||
if (entityMilitaryArtilleryUnit.Luke)
|
||||
{
|
||||
g.DrawEllipse(pen, _startPosX.Value + 97, _startPosY.Value + 36, 10, 10);
|
||||
g.FillEllipse(lukeBrush2, _startPosX.Value + 97, _startPosY.Value + 36, 10, 10);
|
||||
|
||||
g.FillRectangle(lukeBrush, _startPosX.Value + 107, _startPosY.Value + 40, 15, 5);
|
||||
g.DrawRectangle(pen, _startPosX.Value + 60, _startPosY.Value + 4, 25, 2);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user