OSDN Git Service

戦況の支援の表示が次の支援のない戦闘で消えないのを直す
[kancollesniffer/KancolleSniffer.git] / KancolleSniffer / View / BattleResultPanel.cs
index 38b26da..b510c8c 100644 (file)
@@ -43,7 +43,7 @@ namespace KancolleSniffer.View
             public int[] FighterPower;\r
             public EnemyFighterPower EnemyFighterPower;\r
             public int AirControlLevel;\r
-            public string SupportType;\r
+            public int SupportType;\r
             public bool HaveDay => _day != null;\r
             public bool HaveNight => _night != null;\r
 \r
@@ -222,7 +222,7 @@ namespace KancolleSniffer.View
             ShowDamage(result.Damage);\r
             ShowResultRank(result.Rank);\r
             _information.Show(_data);\r
-            _supportLabel.Text = _data.SupportType;\r
+            ShowSupportType(_data.SupportType);\r
             UpdateCellInfo(_cellInfo);\r
             AutoScrollPosition = new Point(-_scrollPosition.X, -_scrollPosition.Y);\r
         }\r
@@ -300,6 +300,11 @@ namespace KancolleSniffer.View
             _rankLabel.Text = result[(int)rank];\r
         }\r
 \r
+        private void ShowSupportType(int support)\r
+        {\r
+            _supportLabel.Text = new[] {"", "空支援", "砲支援", "雷支援", "潜支援"}[support];\r
+        }\r
+\r
         public void UpdateCellInfo(CellInfo cellInfo)\r
         {\r
             _cellLabel.Text = (Spoilers & Spoiler.NextCell) == 0 ? cellInfo.Current : cellInfo.Next;\r