OSDN Git Service

戦況で支援が来るのをわかるようにする
[kancollesniffer/KancolleSniffer.git] / KancolleSniffer / View / BattleResultPanel.cs
index cdba9c4..9b15679 100644 (file)
@@ -31,10 +31,11 @@ namespace KancolleSniffer.View
         private readonly List<Panel> _panelList = new List<Panel>();\r
         private readonly List<ShipLabel> _hpLabels = new List<ShipLabel>();\r
         private readonly BattleInfo.BattleResult[] _result = new BattleInfo.BattleResult[2];\r
-        private Label _phaseLabel, _rankLabel, _cellLabel;\r
+        private Label _phaseLabel, _rankLabel, _supportLabel, _cellLabel;\r
         private readonly BattleResultRank[] _rank = new BattleResultRank[2];\r
         private readonly InformationPanel _informationPanel;\r
         private CellInfo _cellInfo;\r
+        private string _supportType;\r
 \r
         public Spoiler Spoilers { get; set; }\r
 \r
@@ -81,6 +82,7 @@ namespace KancolleSniffer.View
                 case BattleState.Unknown:\r
                     return;\r
             }\r
+            _supportType = sniffer.Battle.SupportType;\r
             if ((Spoilers & Spoiler.BattleResult) != 0)\r
             {\r
                 ShowResult(sniffer.Battle.Result);\r
@@ -182,6 +184,7 @@ namespace KancolleSniffer.View
                 panel.Visible = false;\r
             _informationPanel.Visible = false;\r
             _rankLabel.Text = "";\r
+            _supportLabel.Text = "";\r
         }\r
 \r
         private void ShowResult(BattleInfo.BattleResult result)\r
@@ -292,6 +295,7 @@ namespace KancolleSniffer.View
         {\r
             var result = new[] {"完全S", "勝利S", "勝利A", "勝利B", "敗北C", "敗北D", "敗北E"};\r
             _rankLabel.Text = result[(int)rank];\r
+            _supportLabel.Text = _supportType;\r
         }\r
 \r
         public void UpdateCellInfo(CellInfo cellInfo)\r
@@ -315,6 +319,12 @@ namespace KancolleSniffer.View
                 Size = new Size(42, 12)\r
             };\r
             Controls.Add(_rankLabel);\r
+            _supportLabel = new Label\r
+            {\r
+                Location = new Point(77, 4),\r
+                AutoSize = true\r
+            };\r
+            Controls.Add(_supportLabel);\r
             _cellLabel = new Label\r
             {\r
                 Location = new Point(0, 4),\r