fd
This commit is contained in:
parent
3fd45b6f3b
commit
2965eaded3
@ -196,22 +196,29 @@ public class DrawningBoat
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Pen pen = new(EntityBoat.BodyColor, 2);
|
Pen pen = new(EntityBoat.BodyColor, 2);
|
||||||
|
Pen pen2 = new(Color.Black, 2);
|
||||||
Brush motorBrush = new SolidBrush(Color.Black);
|
Brush motorBrush = new SolidBrush(Color.Black);
|
||||||
Brush glassBrush = new SolidBrush(Color.Blue);
|
Brush glassBrush = new SolidBrush(Color.Blue);
|
||||||
|
Brush Brush = new SolidBrush(EntityBoat.BodyColor);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//границы круисера
|
//границы круисера
|
||||||
g.DrawLine(pen, _startPosX.Value, _startPosY.Value, _startPosX.Value + 105, _startPosY.Value);
|
Point[] points = { new Point(_startPosX.Value, _startPosY.Value), new Point(_startPosX.Value + 105, _startPosY.Value), new Point( _startPosX.Value + 147, _startPosY.Value + 24), new Point(_startPosX.Value + 105, _startPosY.Value + 49), new Point(_startPosX.Value , _startPosY.Value + 49), new Point(_startPosX.Value, _startPosY.Value ) };
|
||||||
g.DrawLine(pen, _startPosX.Value + 105, _startPosY.Value, _startPosX.Value + 147, _startPosY.Value + 24);
|
g.FillPolygon(Brush, points);
|
||||||
|
g.DrawPolygon(pen2, points);
|
||||||
|
|
||||||
g.DrawLine(pen, _startPosX.Value, _startPosY.Value + 49, _startPosX.Value + 105, _startPosY.Value + 49);
|
//g.DrawLine(pen, _startPosX.Value, _startPosY.Value, _startPosX.Value + 105, _startPosY.Value);
|
||||||
g.DrawLine(pen, _startPosX.Value + 105, _startPosY.Value + 49, _startPosX.Value + 147, _startPosY.Value + 24);
|
// g.DrawLine(pen, _startPosX.Value + 105, _startPosY.Value, _startPosX.Value + 147, _startPosY.Value + 24);
|
||||||
|
|
||||||
g.DrawLine(pen, _startPosX.Value, _startPosY.Value, _startPosX.Value, _startPosY.Value + 49);
|
// g.DrawLine(pen, _startPosX.Value, _startPosY.Value + 49, _startPosX.Value + 105, _startPosY.Value + 49);
|
||||||
|
// g.DrawLine(pen, _startPosX.Value + 105, _startPosY.Value + 49, _startPosX.Value + 147, _startPosY.Value + 24);
|
||||||
|
|
||||||
|
//g.DrawLine(pen, _startPosX.Value, _startPosY.Value, _startPosX.Value, _startPosY.Value + 49);
|
||||||
|
|
||||||
//внутренности круисера
|
//внутренности круисера
|
||||||
|
|
||||||
g.DrawRectangle(pen, _startPosX.Value + 25, _startPosY.Value + 10, 80, 30);
|
g.DrawRectangle(pen2, _startPosX.Value + 25, _startPosY.Value + 10, 80, 30);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -35,15 +35,20 @@ namespace ProjectBoat.Drawnings
|
|||||||
Brush motorBrush = new SolidBrush(Color.Black);
|
Brush motorBrush = new SolidBrush(Color.Black);
|
||||||
Brush glassBrush = new SolidBrush(Color.Blue);
|
Brush glassBrush = new SolidBrush(Color.Blue);
|
||||||
Brush oarsBrush = new HatchBrush(HatchStyle.ZigZag, Color.FromArgb(163, 163, 163));
|
Brush oarsBrush = new HatchBrush(HatchStyle.ZigZag, Color.FromArgb(163, 163, 163));
|
||||||
|
Pen pen2 = new(Color.Black, 2);
|
||||||
|
Brush Brush = new SolidBrush(entityMBoat.AdditionalColor);
|
||||||
|
|
||||||
|
g.FillRectangle(Brush, _startPosX.Value + 25, _startPosY.Value + 10, 80, 30);
|
||||||
|
|
||||||
|
g.DrawRectangle(pen2, _startPosX.Value + 25, _startPosY.Value + 10, 80, 30);
|
||||||
|
|
||||||
base.DrawTransport(g);
|
base.DrawTransport(g);
|
||||||
|
|
||||||
if (entityMBoat.Motor)
|
|
||||||
{
|
|
||||||
g.FillRectangle(motorBrush, _startPosX.Value - 3, _startPosY.Value + 15, 20, 17);
|
g.FillRectangle(motorBrush, _startPosX.Value - 3, _startPosY.Value + 15, 20, 17);
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (entityMBoat.Oars)
|
if (entityMBoat.Oars)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user