OSDN Git Service

航空戦の結果表示で敵軍を少し左に寄せる
authorKazuhiro Fujieda <fujieda@users.osdn.me>
Wed, 3 Jan 2018 11:55:59 +0000 (20:55 +0900)
committerKazuhiro Fujieda <fujieda@users.osdn.me>
Sat, 27 Jan 2018 08:33:59 +0000 (17:33 +0900)
KancolleSniffer/AirBattleResultPanel.cs

index 835ab7b..b18dbb6 100644 (file)
@@ -70,10 +70,11 @@ namespace KancolleSniffer
                 _stage1 = new Label {Text = "stage1", Location = new Point(8, top), AutoSize = true},\r
                 new Label {Text = "stage2", Location = new Point(8, top + 14), AutoSize = true},\r
                 new Label {Text = "自軍", Location = new Point(67, 6), AutoSize = true},\r
-                new Label {Text = "敵軍", Location = new Point(124, 6), AutoSize = true}\r
+                new Label {Text = "敵軍", Location = new Point(122, 6), AutoSize = true}\r
             };\r
             Controls.AddRange(labels);\r
             const int left = 53;\r
+            const int space = 55;\r
             for (var stage = 0; stage < 2; stage++)\r
             {\r
                 _resultLabels[stage] = new Label[2][];\r
@@ -82,19 +83,19 @@ namespace KancolleSniffer
                     _resultLabels[stage][fe] = new Label[2];\r
                     Controls.Add(_resultLabels[stage][fe][1] = new Label\r
                     {\r
-                        Location = new Point(left + 34 + 57 * fe, top + 14 * stage),\r
+                        Location = new Point(left + 34 + space * fe, top + 14 * stage),\r
                         Size = new Size(24, 12),\r
                         TextAlign = ContentAlignment.TopLeft\r
                     });\r
                     Controls.Add(new Label\r
                     {\r
-                        Location = new Point(left + 21 + 57 * fe, top + 14 * stage),\r
+                        Location = new Point(left + 21 + space * fe, top + 14 * stage),\r
                         Text = "→",\r
                         AutoSize = true\r
                     });\r
                     Controls.Add(_resultLabels[stage][fe][0] = new Label\r
                     {\r
-                        Location = new Point(left + 57 * fe, top + 14 * stage),\r
+                        Location = new Point(left + space * fe, top + 14 * stage),\r
                         Size = new Size(24, 12),\r
                         TextAlign = ContentAlignment.TopRight\r
                     });\r