From 701a08c5833771f7b9dee40291e1b72d06798eef Mon Sep 17 00:00:00 2001 From: ilyaryabovv Date: Mon, 5 Feb 2024 19:47:44 +0400 Subject: [PATCH] =?UTF-8?q?=D0=95=D1=89=D1=91=20=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ProjectStormtrooper/ProjectStormtrooper/DrawingStormtrooper.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ProjectStormtrooper/ProjectStormtrooper/DrawingStormtrooper.cs b/ProjectStormtrooper/ProjectStormtrooper/DrawingStormtrooper.cs index 9e88c65..9b31d37 100644 --- a/ProjectStormtrooper/ProjectStormtrooper/DrawingStormtrooper.cs +++ b/ProjectStormtrooper/ProjectStormtrooper/DrawingStormtrooper.cs @@ -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) {