{\r
foreach (var panel in _panelList)\r
panel.Visible = false;\r
- _rankLabel.Visible = _infomationPanel.Visible = false;\r
+ _infomationPanel.Visible = false;\r
+ _rankLabel.Text = "";\r
}\r
\r
private void ShowResult(BattleInfo.BattleResult result)\r
_enemyLabels[0][1].Location.X + _enemyLabels.Max(labels => labels[1].Size.Width) - 1); // 敵の名前の右端\r
for (var i = 0; i < lines; i++)\r
_panelList[i].Width = panelWidth;\r
- _infomationPanel.Location = new Point(AutoScrollPosition.X, 2 + AutoScrollPosition.Y);\r
+ _infomationPanel.Location = new Point(AutoScrollPosition.X, AutoScrollPosition.Y);\r
_infomationPanel.Visible = true;\r
}\r
\r
\r
private void ShowResultRank(BattleResultRank rank)\r
{\r
- _rankLabel.Visible = true;\r
var result = new[] {"完全S", "勝利S", "勝利A", "勝利B", "敗北C", "敗北D", "敗北E"};\r
_rankLabel.Text = result[(int)rank];\r
}\r
{\r
_phaseLabel = new Label\r
{\r
- Location = new Point(78, 18),\r
+ Location = new Point(72, 21),\r
Size = new Size(31, 14)\r
};\r
_phaseLabel.Click += PhaseLabelClick;\r
Controls.Add(_phaseLabel);\r
_rankLabel = new Label\r
{\r
- Location = new Point(110, 18),\r
+ Location = new Point(111, 22),\r
Size = new Size(42, 12)\r
};\r
Controls.Add(_rankLabel);\r
for (var i = 0; i < 14; i++)\r
{\r
- var y = LineHeight * (i + 1);\r
+ var y = LineHeight * i + 21;\r
var panel = new Panel\r
{\r
Location = new Point(0, y),\r
\r
public InformationPanel()\r
{\r
+ const int top = 4;\r
+ const int left = 1;\r
Visible = false;\r
- Size = new Size(213, 12);\r
+ Size = new Size(left + 206, top + 15);\r
Controls.AddRange(_formation = new[]\r
{\r
new Label\r
{\r
- Location = new Point(47, 0),\r
+ Location = new Point(46, 0),\r
Size = new Size(29, 12)\r
},\r
new Label\r
{\r
- Location = new Point(75, 0),\r
+ Location = new Point(74, 0),\r
Size = new Size(29, 12)\r
},\r
new Label\r
{\r
Location = new Point(0, 0),\r
Size = new Size(48, 12),\r
- TextAlign = ContentAlignment.MiddleRight\r
+ TextAlign = ContentAlignment.MiddleCenter\r
}\r
});\r
Controls.AddRange(_fighterPower = new[]\r
{\r
new Label\r
{\r
- Location = new Point(168, 0),\r
+ Location = new Point(162, 0),\r
Size = new Size(23, 12),\r
TextAlign = ContentAlignment.MiddleRight\r
},\r
new Label\r
{\r
- Location = new Point(190, 0),\r
+ Location = new Point(183, 0),\r
Size = new Size(23, 12),\r
TextAlign = ContentAlignment.MiddleRight\r
},\r
new Label\r
{\r
- Location = new Point(116, 0),\r
+ Location = new Point(110, 0),\r
Size = new Size(53, 12)\r
}\r
});\r
+ foreach (Control control in Controls)\r
+ control.Location = new Point(control.Location.X + left, control.Location.Y + top);\r
+ // ReSharper disable once VirtualMemberCallInConstructor\r
+ BackColor = ShipLabels.ColumnColors[1];\r
}\r
\r
public void SetInformation(BattleInfo battleInfo)\r