процесс прорисвоки
This commit is contained in:
parent
da62af23c3
commit
9ddc7ad36f
@ -179,54 +179,58 @@ public class DrawningAntiAircraftGun
|
|||||||
}
|
}
|
||||||
|
|
||||||
Pen pen = new(Color.Black);
|
Pen pen = new(Color.Black);
|
||||||
Pen additionalpen = new(EntityAntiAircraftGun.AdditionalColor);
|
Brush MainBrush = new SolidBrush(EntityAntiAircraftGun.BodyColor);
|
||||||
|
|
||||||
|
//основание
|
||||||
|
g.DrawEllipse(pen, _startPosX.Value, _startPosY.Value + 45, 20, 20);
|
||||||
|
g.DrawEllipse(pen, _startPosX.Value + 95, _startPosY.Value + 45, 20, 20);
|
||||||
|
|
||||||
|
g.DrawRectangle(pen, _startPosX.Value + 5, _startPosY.Value + 45, 100, 20);
|
||||||
|
g.FillRectangle(MainBrush, _startPosX.Value + 5, _startPosY.Value + 45, 100, 20);
|
||||||
|
|
||||||
//корпус гидросамолета
|
g.FillEllipse(MainBrush, _startPosX.Value, _startPosY.Value + 45, 20, 20);
|
||||||
Brush br = new SolidBrush(EntityAntiAircraftGun.BodyColor);
|
g.FillEllipse(MainBrush, _startPosX.Value + 95, _startPosY.Value + 45, 20, 20);
|
||||||
g.FillRectangle(br, _startPosX.Value, _startPosY.Value + 20, 100, 20);
|
|
||||||
g.DrawRectangle(pen, _startPosX.Value, _startPosY.Value + 20, 100, 20);
|
|
||||||
|
|
||||||
//крыло
|
g.DrawRectangle(pen, _startPosX.Value + 5, _startPosY.Value + 35, 80, 10);
|
||||||
Brush darkBrush = new SolidBrush(Color.Black);
|
g.FillRectangle(MainBrush, _startPosX.Value + 5, _startPosY.Value + 35, 80, 10);
|
||||||
g.FillRectangle(darkBrush, _startPosX.Value + 27, _startPosY.Value + 29, 40, 3);
|
|
||||||
|
|
||||||
//хвостовое крыло
|
//катки
|
||||||
g.DrawLine(pen, _startPosX.Value, _startPosY.Value + 20, _startPosX.Value, _startPosY.Value);
|
|
||||||
g.DrawLine(pen, _startPosX.Value, _startPosY.Value, _startPosX.Value + 20, _startPosY.Value + 20);
|
|
||||||
|
|
||||||
//заднее поперечное крыло
|
g.DrawEllipse(pen, _startPosX.Value + 5, _startPosY.Value + 45, 20, 20);
|
||||||
Brush additionalBrush = new SolidBrush(EntityAntiAircraftGun.AdditionalColor);
|
g.DrawEllipse(pen, _startPosX.Value + 90, _startPosY.Value + 45, 20, 20);
|
||||||
g.FillEllipse(darkBrush, _startPosX.Value - 7, _startPosY.Value + 15, 20, 5);
|
|
||||||
|
|
||||||
//нос самолёта
|
|
||||||
g.DrawLine(pen, _startPosX.Value + 100, _startPosY.Value + 20, _startPosX.Value + 130, _startPosY.Value + 30);
|
|
||||||
g.DrawLine(pen, _startPosX.Value + 100, _startPosY.Value + 40, _startPosX.Value + 130, _startPosY.Value + 30);
|
|
||||||
g.DrawLine(pen, _startPosX.Value + 130, _startPosY.Value + 30, _startPosX.Value + 100, _startPosY.Value + 30);
|
|
||||||
|
|
||||||
//задние шасси
|
g.FillEllipse(MainBrush, _startPosX.Value + 5, _startPosY.Value + 45, 20, 20);
|
||||||
g.DrawLine(pen, _startPosX.Value + 21, _startPosY.Value + 40, _startPosX.Value + 21, _startPosY.Value + 45);
|
g.FillEllipse(MainBrush, _startPosX.Value, _startPosY.Value + 45, 20, 20);
|
||||||
g.FillEllipse(darkBrush, _startPosX.Value + 15, _startPosY.Value + 45, 6, 6);
|
|
||||||
g.FillEllipse(darkBrush, _startPosX.Value + 21, _startPosY.Value + 45, 6, 6);
|
|
||||||
|
|
||||||
//переднее шасси
|
g.DrawEllipse(pen, _startPosX.Value + 30, _startPosY.Value + 55, 10, 10);
|
||||||
g.DrawLine(pen, _startPosX.Value + 90, _startPosY.Value + 40, _startPosX.Value + 90, _startPosY.Value + 45);
|
g.FillEllipse(MainBrush, _startPosX.Value + 30, _startPosY.Value + 55, 10, 10);
|
||||||
g.FillEllipse(darkBrush, _startPosX.Value + 87, _startPosY.Value + 45, 6, 6);
|
|
||||||
|
|
||||||
// поплавки
|
g.DrawEllipse(pen, _startPosX.Value + 45, _startPosY.Value + 55, 10, 10);
|
||||||
|
g.FillEllipse(MainBrush, _startPosX.Value, _startPosY.Value + 55, 10, 10);
|
||||||
|
|
||||||
|
g.DrawEllipse(pen, _startPosX.Value + 60, _startPosY.Value + 55, 10, 10);
|
||||||
|
g.FillEllipse(MainBrush, _startPosX.Value, _startPosY.Value + 55, 10, 10);
|
||||||
|
|
||||||
|
g.DrawEllipse(pen, _startPosX.Value + 75, _startPosY.Value + 55, 10, 10);
|
||||||
|
g.FillEllipse(MainBrush, _startPosX.Value, _startPosY.Value + 55, 10, 10);
|
||||||
|
|
||||||
|
//tower_gin
|
||||||
if (EntityAntiAircraftGun.Tower)
|
if (EntityAntiAircraftGun.Tower)
|
||||||
{
|
{
|
||||||
Brush br2 = new SolidBrush(Color.Red);
|
g.DrawRectangle(pen, _startPosX.Value + 50, _startPosY.Value + 20, 50, 5);
|
||||||
g.FillRectangle(br2, _startPosX.Value + 10, _startPosY.Value + 48, 90, 5);
|
g.FillRectangle(MainBrush, _startPosX.Value + 50, _startPosY.Value + 20, 50, 5);
|
||||||
}
|
|
||||||
|
|
||||||
// надувная лодка
|
g.DrawRectangle(pen, _startPosX.Value + 25, _startPosY.Value + 15, 30, 20);
|
||||||
|
g.FillRectangle(MainBrush, _startPosX.Value + 25, _startPosY.Value + 15, 30, 20);
|
||||||
|
}
|
||||||
|
//зенитка
|
||||||
if (EntityAntiAircraftGun.Radar)
|
if (EntityAntiAircraftGun.Radar)
|
||||||
{
|
{
|
||||||
g.FillRectangle(additionalBrush, _startPosX.Value + 38, _startPosY.Value + 38, 22, 8);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user