{\r
this.components = new System.ComponentModel.Container();\r
this.groupBoxNotification = new System.Windows.Forms.GroupBox();\r
+ this.label6 = new System.Windows.Forms.Label();\r
+ this.checkBoxCond49 = new System.Windows.Forms.CheckBox();\r
+ this.checkBoxCond40 = new System.Windows.Forms.CheckBox();\r
+ this.label5 = new System.Windows.Forms.Label();\r
+ this.numericUpDownMarginEquips = new System.Windows.Forms.NumericUpDown();\r
+ this.label4 = new System.Windows.Forms.Label();\r
this.numericUpDownMarginShips = new System.Windows.Forms.NumericUpDown();\r
this.label2 = new System.Windows.Forms.Label();\r
this.label1 = new System.Windows.Forms.Label();\r
this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);\r
this.ProxyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\r
this.DebugToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();\r
- this.numericUpDownMarginEquips = new System.Windows.Forms.NumericUpDown();\r
- this.label5 = new System.Windows.Forms.Label();\r
- this.label4 = new System.Windows.Forms.Label();\r
this.groupBoxNotification.SuspendLayout();\r
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMarginEquips)).BeginInit();\r
((System.ComponentModel.ISupportInitialize)(this.numericUpDownMarginShips)).BeginInit();\r
this.groupBoxSound.SuspendLayout();\r
((System.ComponentModel.ISupportInitialize)(this.numericUpDownSoundVolume)).BeginInit();\r
this.groupBoxShow.SuspendLayout();\r
this.groupBoxAchievement.SuspendLayout();\r
this.contextMenuStrip.SuspendLayout();\r
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMarginEquips)).BeginInit();\r
this.SuspendLayout();\r
// \r
// groupBoxNotification\r
// \r
+ this.groupBoxNotification.Controls.Add(this.label6);\r
+ this.groupBoxNotification.Controls.Add(this.checkBoxCond49);\r
+ this.groupBoxNotification.Controls.Add(this.checkBoxCond40);\r
this.groupBoxNotification.Controls.Add(this.label5);\r
this.groupBoxNotification.Controls.Add(this.numericUpDownMarginEquips);\r
this.groupBoxNotification.Controls.Add(this.label4);\r
this.groupBoxNotification.Controls.Add(this.checkBoxFlash);\r
this.groupBoxNotification.Location = new System.Drawing.Point(6, 71);\r
this.groupBoxNotification.Name = "groupBoxNotification";\r
- this.groupBoxNotification.Size = new System.Drawing.Size(240, 126);\r
+ this.groupBoxNotification.Size = new System.Drawing.Size(240, 147);\r
this.groupBoxNotification.TabIndex = 0;\r
this.groupBoxNotification.TabStop = false;\r
this.groupBoxNotification.Text = "通知";\r
// \r
+ // label6\r
+ // \r
+ this.label6.AutoSize = true;\r
+ this.label6.Location = new System.Drawing.Point(4, 126);\r
+ this.label6.Name = "label6";\r
+ this.label6.Size = new System.Drawing.Size(105, 12);\r
+ this.label6.TabIndex = 13;\r
+ this.label6.Text = "疲労回復を通知する";\r
+ // \r
+ // checkBoxCond49\r
+ // \r
+ this.checkBoxCond49.AutoSize = true;\r
+ this.checkBoxCond49.Location = new System.Drawing.Point(175, 125);\r
+ this.checkBoxCond49.Name = "checkBoxCond49";\r
+ this.checkBoxCond49.Size = new System.Drawing.Size(60, 16);\r
+ this.checkBoxCond49.TabIndex = 12;\r
+ this.checkBoxCond49.Text = "cond49";\r
+ this.checkBoxCond49.UseVisualStyleBackColor = true;\r
+ // \r
+ // checkBoxCond40\r
+ // \r
+ this.checkBoxCond40.AutoSize = true;\r
+ this.checkBoxCond40.Location = new System.Drawing.Point(113, 125);\r
+ this.checkBoxCond40.Name = "checkBoxCond40";\r
+ this.checkBoxCond40.Size = new System.Drawing.Size(60, 16);\r
+ this.checkBoxCond40.TabIndex = 11;\r
+ this.checkBoxCond40.Text = "cond40";\r
+ this.checkBoxCond40.UseVisualStyleBackColor = true;\r
+ // \r
+ // label5\r
+ // \r
+ this.label5.AutoSize = true;\r
+ this.label5.Location = new System.Drawing.Point(113, 103);\r
+ this.label5.Name = "label5";\r
+ this.label5.Size = new System.Drawing.Size(70, 12);\r
+ this.label5.TabIndex = 9;\r
+ this.label5.Text = "個で通知する";\r
+ // \r
+ // numericUpDownMarginEquips\r
+ // \r
+ this.numericUpDownMarginEquips.Location = new System.Drawing.Point(76, 101);\r
+ this.numericUpDownMarginEquips.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
+ this.numericUpDownMarginEquips.Maximum = new decimal(new int[] {\r
+ 99,\r
+ 0,\r
+ 0,\r
+ 0});\r
+ this.numericUpDownMarginEquips.Name = "numericUpDownMarginEquips";\r
+ this.numericUpDownMarginEquips.Size = new System.Drawing.Size(36, 19);\r
+ this.numericUpDownMarginEquips.TabIndex = 8;\r
+ this.numericUpDownMarginEquips.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;\r
+ // \r
+ // label4\r
+ // \r
+ this.label4.AutoSize = true;\r
+ this.label4.Location = new System.Drawing.Point(47, 103);\r
+ this.label4.Name = "label4";\r
+ this.label4.Size = new System.Drawing.Size(29, 12);\r
+ this.label4.TabIndex = 7;\r
+ this.label4.Text = "装備";\r
+ // \r
// numericUpDownMarginShips\r
// \r
this.numericUpDownMarginShips.Location = new System.Drawing.Point(76, 81);\r
this.groupBoxSound.Controls.Add(this.textBoxSoundFile);\r
this.groupBoxSound.Controls.Add(this.numericUpDownSoundVolume);\r
this.groupBoxSound.Controls.Add(this.label3);\r
- this.groupBoxSound.Location = new System.Drawing.Point(6, 245);\r
+ this.groupBoxSound.Location = new System.Drawing.Point(6, 266);\r
this.groupBoxSound.Name = "groupBoxSound";\r
this.groupBoxSound.Size = new System.Drawing.Size(240, 138);\r
this.groupBoxSound.TabIndex = 1;\r
// \r
this.buttonOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
this.buttonOk.DialogResult = System.Windows.Forms.DialogResult.OK;\r
- this.buttonOk.Location = new System.Drawing.Point(87, 392);\r
+ this.buttonOk.Location = new System.Drawing.Point(87, 413);\r
this.buttonOk.Margin = new System.Windows.Forms.Padding(3, 8, 3, 3);\r
this.buttonOk.Name = "buttonOk";\r
this.buttonOk.Size = new System.Drawing.Size(75, 23);\r
// \r
this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));\r
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;\r
- this.buttonCancel.Location = new System.Drawing.Point(165, 392);\r
+ this.buttonCancel.Location = new System.Drawing.Point(165, 413);\r
this.buttonCancel.Margin = new System.Windows.Forms.Padding(3, 6, 3, 3);\r
this.buttonCancel.Name = "buttonCancel";\r
this.buttonCancel.Size = new System.Drawing.Size(75, 23);\r
this.groupBoxAchievement.Controls.Add(this.label8);\r
this.groupBoxAchievement.Controls.Add(this.checkBoxReset14);\r
this.groupBoxAchievement.Controls.Add(this.checkBoxReset02);\r
- this.groupBoxAchievement.Location = new System.Drawing.Point(6, 201);\r
+ this.groupBoxAchievement.Location = new System.Drawing.Point(6, 222);\r
this.groupBoxAchievement.Name = "groupBoxAchievement";\r
this.groupBoxAchievement.Size = new System.Drawing.Size(240, 40);\r
this.groupBoxAchievement.TabIndex = 5;\r
this.DebugToolStripMenuItem.Text = "デバッグ設定(&D)";\r
this.DebugToolStripMenuItem.Click += new System.EventHandler(this.DebugToolStripMenuItem_Click);\r
// \r
- // numericUpDownMarginEquips\r
- // \r
- this.numericUpDownMarginEquips.Location = new System.Drawing.Point(76, 101);\r
- this.numericUpDownMarginEquips.Margin = new System.Windows.Forms.Padding(0, 3, 0, 3);\r
- this.numericUpDownMarginEquips.Maximum = new decimal(new int[] {\r
- 99,\r
- 0,\r
- 0,\r
- 0});\r
- this.numericUpDownMarginEquips.Name = "numericUpDownMarginEquips";\r
- this.numericUpDownMarginEquips.Size = new System.Drawing.Size(36, 19);\r
- this.numericUpDownMarginEquips.TabIndex = 8;\r
- this.numericUpDownMarginEquips.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;\r
- // \r
- // label5\r
- // \r
- this.label5.AutoSize = true;\r
- this.label5.Location = new System.Drawing.Point(113, 103);\r
- this.label5.Name = "label5";\r
- this.label5.Size = new System.Drawing.Size(70, 12);\r
- this.label5.TabIndex = 9;\r
- this.label5.Text = "個で通知する";\r
- // \r
- // label4\r
- // \r
- this.label4.AutoSize = true;\r
- this.label4.Location = new System.Drawing.Point(47, 103);\r
- this.label4.Name = "label4";\r
- this.label4.Size = new System.Drawing.Size(29, 12);\r
- this.label4.TabIndex = 7;\r
- this.label4.Text = "装備";\r
- // \r
// ConfigDialog\r
// \r
this.AcceptButton = this.buttonOk;\r
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);\r
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
this.CancelButton = this.buttonCancel;\r
- this.ClientSize = new System.Drawing.Size(252, 424);\r
+ this.ClientSize = new System.Drawing.Size(252, 445);\r
this.ContextMenuStrip = this.contextMenuStrip;\r
this.Controls.Add(this.groupBoxAchievement);\r
this.Controls.Add(this.groupBoxShow);\r
this.Load += new System.EventHandler(this.ConfigDialog_Load);\r
this.groupBoxNotification.ResumeLayout(false);\r
this.groupBoxNotification.PerformLayout();\r
+ ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMarginEquips)).EndInit();\r
((System.ComponentModel.ISupportInitialize)(this.numericUpDownMarginShips)).EndInit();\r
this.groupBoxSound.ResumeLayout(false);\r
this.groupBoxSound.PerformLayout();\r
this.groupBoxAchievement.ResumeLayout(false);\r
this.groupBoxAchievement.PerformLayout();\r
this.contextMenuStrip.ResumeLayout(false);\r
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDownMarginEquips)).EndInit();\r
this.ResumeLayout(false);\r
\r
}\r
private System.Windows.Forms.Label label5;\r
private System.Windows.Forms.NumericUpDown numericUpDownMarginEquips;\r
private System.Windows.Forms.Label label4;\r
+ private System.Windows.Forms.Label label6;\r
+ private System.Windows.Forms.CheckBox checkBoxCond49;\r
+ private System.Windows.Forms.CheckBox checkBoxCond40;\r
}\r
}
\ No newline at end of file
using System;\r
using System.Collections.Generic;\r
using System.IO;\r
-using System.Linq;\r
using System.Windows.Forms;\r
\r
namespace KancolleSniffer\r
listBoxSoundFile.Items.AddRange(new object[]\r
{\r
"遠征終了", "入渠終了", "建造完了", "艦娘数超過", "装備数超過",\r
- "大破警告", "泊地修理20分経過", "泊地修理進行"\r
+ "大破警告", "泊地修理20分経過", "泊地修理進行", "疲労回復"\r
});\r
}\r
\r
groupBoxSound.Enabled = checkBoxSound.Checked = _config.PlaySound;\r
numericUpDownMarginShips.Value = _config.MarginShips;\r
numericUpDownMarginEquips.Value = _config.MarginEquips;\r
-\r
- checkBoxReset02.Checked = _config.ResetHours.Any(x => x == 2);\r
- checkBoxReset14.Checked = _config.ResetHours.Any(x => x == 14);\r
+ checkBoxCond40.Checked = _config.NotifyConditions.Contains(40);\r
+ checkBoxCond49.Checked = _config.NotifyConditions.Contains(49);\r
+ checkBoxReset02.Checked = _config.ResetHours.Contains(2);\r
+ checkBoxReset14.Checked = _config.ResetHours.Contains(14);\r
\r
numericUpDownSoundVolume.Value = _config.SoundVolume;\r
\r
_soundSetting["大破警告"] = _config.DamagedShipSoundFile;\r
_soundSetting["泊地修理20分経過"] = _config.Akashi20MinSoundFile;\r
_soundSetting["泊地修理進行"] = _config.AkashiProgressSoundFile;\r
+ _soundSetting["疲労回復"] = _config.ConditionSoundFile;\r
+\r
listBoxSoundFile.SelectedIndex = 0;\r
}\r
\r
_config.MarginShips = (int)numericUpDownMarginShips.Value;\r
_config.MarginEquips = (int)numericUpDownMarginEquips.Value;\r
\r
+ _config.NotifyConditions.Clear();\r
+ if (checkBoxCond40.Checked)\r
+ _config.NotifyConditions.Add(40);\r
+ if (checkBoxCond49.Checked)\r
+ _config.NotifyConditions.Add(49);\r
+\r
_config.ResetHours.Clear();\r
if (checkBoxReset02.Checked)\r
_config.ResetHours.Add(2);\r
_config.DamagedShipSoundFile = _soundSetting["大破警告"];\r
_config.Akashi20MinSoundFile = _soundSetting["泊地修理20分経過"];\r
_config.AkashiProgressSoundFile = _soundSetting["泊地修理進行"];\r
+ _config.ConditionSoundFile = _soundSetting["疲労回復"];\r
}\r
\r
private void checkBoxSound_CheckedChanged(object sender, EventArgs e)\r