OSDN Git Service

明石タイマーが艦名の5文字目を中途半端に隠すのを直す
authorKazuhiro Fujieda <fujieda@users.osdn.me>
Sun, 4 Oct 2015 06:20:00 +0000 (15:20 +0900)
committerKazuhiro Fujieda <fujieda@users.osdn.me>
Sun, 4 Oct 2015 06:20:00 +0000 (15:20 +0900)
KancolleSniffer/ShipLabels.cs

index 200f0fa..e912089 100644 (file)
@@ -108,11 +108,17 @@ namespace KancolleSniffer
             parent.SuspendLayout();\r
             for (var i = 0; i < _akashiTimers.Length; i++)\r
             {\r
-                const int x = 54;\r
+                const int x = 51;\r
                 var y = 20 + 16 * i;\r
                 ShipLabel label;\r
                 parent.Controls.Add(\r
-                    label = _akashiTimers[i] = new ShipLabel {Location = new Point(x, y), AutoSize = true});\r
+                    label = _akashiTimers[i] =\r
+                        new ShipLabel\r
+                        {\r
+                            Location = new Point(x, y),\r
+                            Size = new Size(34, 12),\r
+                            TextAlign = ContentAlignment.TopRight\r
+                        });\r
                 label.BackColor = ColumnColors[i % 2];\r
             }\r
             foreach (var label in _akashiTimers)\r
@@ -199,7 +205,7 @@ namespace KancolleSniffer
                 return;\r
             }\r
             parent.Size = new Size(parent.Width, (int)Round(ShipLabel.ScaleFactor.Height * (num * 16 + 3)));\r
-            var colors = new[] { Color.FromArgb(255, 225, 225, 21), Color.Orange, Color.Red };\r
+            var colors = new[] {Color.FromArgb(255, 225, 225, 21), Color.Orange, Color.Red};\r
             for (var i = 0; i < num; i++)\r
             {\r
                 var s = list[i];\r