OSDN Git Service

任務欄の行数を指定する設定を追加する
authorKazuhiro Fujieda <fujieda@users.osdn.me>
Sun, 28 Apr 2019 08:50:39 +0000 (17:50 +0900)
committerKazuhiro Fujieda <fujieda@users.osdn.me>
Sun, 28 Apr 2019 11:58:08 +0000 (20:58 +0900)
KancolleSniffer/Config.cs
KancolleSniffer/ConfigDialog.Designer.cs
KancolleSniffer/ConfigDialog.cs

index 79ae6af..68ffc7a 100644 (file)
@@ -254,6 +254,7 @@ namespace KancolleSniffer
         public bool HideOnMinimized { get; set; }\r
         public bool ExitSilently { get; set; }\r
         public int Zoom { get; set; } = 100;\r
+        public int QuestLines { get; set; } = 6;\r
         public bool SaveLocationPerMachine { get; set; }\r
         public List<LocationPerMachine> LocationList { get; set; } = new List<LocationPerMachine>();\r
         public bool ShowHpInPercent { get; set; }\r
index a0145bf..f91ed76 100644 (file)
@@ -69,6 +69,7 @@ namespace KancolleSniffer
             this.tabPageAchievement = new System.Windows.Forms.TabPage();\r
             this.checkBoxPresetAkashi = new System.Windows.Forms.CheckBox();\r
             this.groupBox3 = new System.Windows.Forms.GroupBox();\r
+            this.checkBoxNextCell = new System.Windows.Forms.CheckBox();\r
             this.checkBoxBattleResult = new System.Windows.Forms.CheckBox();\r
             this.checkBoxAirBattleResult = new System.Windows.Forms.CheckBox();\r
             this.checkBoxResultRank = new System.Windows.Forms.CheckBox();\r
@@ -132,7 +133,10 @@ namespace KancolleSniffer
             this.openSoundFileDialog = new System.Windows.Forms.OpenFileDialog();\r
             this.folderBrowserDialogOutputDir = new System.Windows.Forms.FolderBrowserDialog();\r
             this.openDebugLogDialog = new System.Windows.Forms.OpenFileDialog();\r
-            this.checkBoxNextCell = new System.Windows.Forms.CheckBox();\r
+            this.numericUpDownQuest = new System.Windows.Forms.NumericUpDown();\r
+            this.label8 = new System.Windows.Forms.Label();\r
+            this.label17 = new System.Windows.Forms.Label();\r
+            this.label18 = new System.Windows.Forms.Label();\r
             this.tabControl.SuspendLayout();\r
             this.tabPageWindow.SuspendLayout();\r
             this.tabPageNotification.SuspendLayout();\r
@@ -153,6 +157,7 @@ namespace KancolleSniffer
             this.groupBoxPushover.SuspendLayout();\r
             this.groupBoxPushbullet.SuspendLayout();\r
             this.tabPageDebug.SuspendLayout();\r
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDownQuest)).BeginInit();\r
             this.SuspendLayout();\r
             // \r
             // tabControl\r
@@ -177,6 +182,10 @@ namespace KancolleSniffer
             // \r
             // tabPageWindow\r
             // \r
+            this.tabPageWindow.Controls.Add(this.label18);\r
+            this.tabPageWindow.Controls.Add(this.label17);\r
+            this.tabPageWindow.Controls.Add(this.label8);\r
+            this.tabPageWindow.Controls.Add(this.numericUpDownQuest);\r
             this.tabPageWindow.Controls.Add(this.checkBoxLocationPerMachine);\r
             this.tabPageWindow.Controls.Add(this.checkBoxExitSilently);\r
             this.tabPageWindow.Controls.Add(this.label15);\r
@@ -215,11 +224,11 @@ namespace KancolleSniffer
             // label15\r
             // \r
             this.label15.AutoSize = true;\r
-            this.label15.Location = new System.Drawing.Point(99, 100);\r
+            this.label15.Location = new System.Drawing.Point(99, 98);\r
             this.label15.Name = "label15";\r
-            this.label15.Size = new System.Drawing.Size(61, 12);\r
+            this.label15.Size = new System.Drawing.Size(11, 12);\r
             this.label15.TabIndex = 6;\r
-            this.label15.Text = "(要再起動)";\r
+            this.label15.Text = "*";\r
             // \r
             // comboBoxZoom\r
             // \r
@@ -468,6 +477,16 @@ namespace KancolleSniffer
             this.groupBox3.TabStop = false;\r
             this.groupBox3.Text = "ネタバレ";\r
             // \r
+            // checkBoxNextCell\r
+            // \r
+            this.checkBoxNextCell.AutoSize = true;\r
+            this.checkBoxNextCell.Location = new System.Drawing.Point(174, 21);\r
+            this.checkBoxNextCell.Name = "checkBoxNextCell";\r
+            this.checkBoxNextCell.Size = new System.Drawing.Size(48, 16);\r
+            this.checkBoxNextCell.TabIndex = 3;\r
+            this.checkBoxNextCell.Text = "進路";\r
+            this.checkBoxNextCell.UseVisualStyleBackColor = true;\r
+            // \r
             // checkBoxBattleResult\r
             // \r
             this.checkBoxBattleResult.AutoSize = true;\r
@@ -1097,15 +1116,55 @@ namespace KancolleSniffer
             this.openDebugLogDialog.CheckFileExists = false;\r
             this.openDebugLogDialog.Title = "ログファイルの選択";\r
             // \r
-            // checkBoxNextCell\r
+            // numericUpDownQuest\r
             // \r
-            this.checkBoxNextCell.AutoSize = true;\r
-            this.checkBoxNextCell.Location = new System.Drawing.Point(174, 21);\r
-            this.checkBoxNextCell.Name = "checkBoxNextCell";\r
-            this.checkBoxNextCell.Size = new System.Drawing.Size(48, 16);\r
-            this.checkBoxNextCell.TabIndex = 3;\r
-            this.checkBoxNextCell.Text = "進路";\r
-            this.checkBoxNextCell.UseVisualStyleBackColor = true;\r
+            this.numericUpDownQuest.Location = new System.Drawing.Point(87, 127);\r
+            this.numericUpDownQuest.Maximum = new decimal(new int[] {\r
+            7,\r
+            0,\r
+            0,\r
+            0});\r
+            this.numericUpDownQuest.Minimum = new decimal(new int[] {\r
+            4,\r
+            0,\r
+            0,\r
+            0});\r
+            this.numericUpDownQuest.Name = "numericUpDownQuest";\r
+            this.numericUpDownQuest.Size = new System.Drawing.Size(32, 19);\r
+            this.numericUpDownQuest.TabIndex = 9;\r
+            this.numericUpDownQuest.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;\r
+            this.numericUpDownQuest.Value = new decimal(new int[] {\r
+            6,\r
+            0,\r
+            0,\r
+            0});\r
+            // \r
+            // label8\r
+            // \r
+            this.label8.AutoSize = true;\r
+            this.label8.Location = new System.Drawing.Point(11, 130);\r
+            this.label8.Name = "label8";\r
+            this.label8.Size = new System.Drawing.Size(75, 12);\r
+            this.label8.TabIndex = 10;\r
+            this.label8.Text = "任務欄の行数";\r
+            // \r
+            // label17\r
+            // \r
+            this.label17.AutoSize = true;\r
+            this.label17.Location = new System.Drawing.Point(186, 138);\r
+            this.label17.Name = "label17";\r
+            this.label17.Size = new System.Drawing.Size(59, 12);\r
+            this.label17.TabIndex = 11;\r
+            this.label17.Text = "*要再起動";\r
+            // \r
+            // label18\r
+            // \r
+            this.label18.AutoSize = true;\r
+            this.label18.Location = new System.Drawing.Point(121, 127);\r
+            this.label18.Name = "label18";\r
+            this.label18.Size = new System.Drawing.Size(11, 12);\r
+            this.label18.TabIndex = 12;\r
+            this.label18.Text = "*";\r
             // \r
             // ConfigDialog\r
             // \r
@@ -1156,6 +1215,7 @@ namespace KancolleSniffer
             this.groupBoxPushbullet.PerformLayout();\r
             this.tabPageDebug.ResumeLayout(false);\r
             this.tabPageDebug.PerformLayout();\r
+            ((System.ComponentModel.ISupportInitialize)(this.numericUpDownQuest)).EndInit();\r
             this.ResumeLayout(false);\r
 \r
         }\r
@@ -1253,5 +1313,9 @@ namespace KancolleSniffer
         private System.Windows.Forms.CheckBox checkBoxAirBattleResult;\r
         private System.Windows.Forms.CheckBox checkBoxResultRank;\r
         private System.Windows.Forms.CheckBox checkBoxNextCell;\r
+        private System.Windows.Forms.Label label8;\r
+        private System.Windows.Forms.NumericUpDown numericUpDownQuest;\r
+        private System.Windows.Forms.Label label17;\r
+        private System.Windows.Forms.Label label18;\r
     }\r
 }
\ No newline at end of file
index 485d0f6..07f0ffc 100644 (file)
@@ -73,6 +73,7 @@ namespace KancolleSniffer
             checkBoxExitSilently.Checked = _config.ExitSilently;\r
             checkBoxLocationPerMachine.Checked = _config.SaveLocationPerMachine;\r
             comboBoxZoom.SelectedItem = _config.Zoom + "%";\r
+            numericUpDownQuest.Value = _config.QuestLines;\r
 \r
             checkBoxFlash.Checked = (_config.NotificationFlags & NotificationType.FlashWindow) != 0;\r
             checkBoxBalloon.Checked = (_config.NotificationFlags & NotificationType.ShowBaloonTip) != 0;\r
@@ -157,6 +158,7 @@ namespace KancolleSniffer
             _config.ExitSilently = checkBoxExitSilently.Checked;\r
             _config.SaveLocationPerMachine = checkBoxLocationPerMachine.Checked;\r
             _config.Zoom = int.Parse(comboBoxZoom.SelectedItem.ToString().Substring(0, 3));\r
+            _config.QuestLines = (int)numericUpDownQuest.Value;\r
             _config.NotificationFlags = (checkBoxFlash.Checked ? NotificationType.FlashWindow : 0) |\r
                                         (checkBoxBalloon.Checked ? NotificationType.ShowBaloonTip : 0) |\r
                                         (checkBoxSound.Checked ? NotificationType.PlaySound : 0) |\r