Ещё правка

This commit is contained in:
Ilya Ryabov 2024-02-05 19:47:44 +04:00
parent b6615f1c12
commit 701a08c583

View File

@ -190,6 +190,7 @@ public class DrawingStormtrooper
return;
}
Pen pen = new(Color.Black);
Brush bodyColorBrush = new SolidBrush(EntityStormtrooper.BodyColor);
Brush additionalBrush = new SolidBrush(EntityStormtrooper.AdditionalColor);
//Тело бомбардировщика
g.DrawRectangle(pen, _startPosX.Value + 20, _startPosY.Value + 60, 120, 20);
@ -211,7 +212,7 @@ public class DrawingStormtrooper
Nose[0].X = _startPosX.Value + 20; Nose[0].Y = _startPosY.Value + 80;
Nose[1].X = _startPosX.Value; Nose[1].Y = _startPosY.Value + 70;
Nose[2].X = _startPosX.Value + 20; Nose[2].Y = _startPosY.Value + 60;
g.FillPolygon(additionalBrush, Nose);
g.FillPolygon(bodyColorBrush, Nose);
//Ракеты бомбардировщика
if (EntityStormtrooper.Rockets)
{