From dca582650cb283fba597399c19dbeae1a4265b1e Mon Sep 17 00:00:00 2001 From: Shawqeem <1004837646@qq.com> Date: Sat, 25 Mar 2023 02:35:35 +0800 Subject: [PATCH] feat: :art: complete drawMap function complete drawMap function --- logic/Client/MainWindow.xaml.cs | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/logic/Client/MainWindow.xaml.cs b/logic/Client/MainWindow.xaml.cs index 50257a3..5113482 100644 --- a/logic/Client/MainWindow.xaml.cs +++ b/logic/Client/MainWindow.xaml.cs @@ -300,6 +300,20 @@ namespace Client } } break;//emergency + case 11: + mapPatches[i, j].Fill = Brushes.Gray; + mapPatches[i, j].Stroke = Brushes.Gray; + break;//window + case 12: + case 13: + case 14: + mapPatches[i, j].Fill = Brushes.Khaki; + mapPatches[i, j].Stroke = Brushes.Khaki; + break;//door + case 15: + mapPatches[i, j].Fill = Brushes.Orange; + mapPatches[i, j].Stroke = Brushes.Orange; + break;//chest default: break; } @@ -767,7 +781,7 @@ namespace Client UpperLayerOfMap.Children.Add(icon); break; } - /* case BulletType.LineBullet: + /*case BulletType.LineBullet: { double bombRange = data.BombRange / 1000; DrawLaser(new Point(data.Y * unitWidth / 1000.0, data.X * unitHeight / 1000.0), -data.FacingDirection + Math.PI / 2, bombRange * unitHeight, 0.5 * unitWidth); @@ -848,11 +862,11 @@ namespace Client }; if (data.IsOpen) { - icon.Text = Convert.ToString("1"); + icon.Text = Convert.ToString("开"); } else { - icon.Text = Convert.ToString("0"); + icon.Text = Convert.ToString("闭"); } UpperLayerOfMap.Children.Add(icon); }