Revision | 01d20dda5b1a04ea92f8ecbea5b6cbc58152b2a0 (tree) |
---|---|
Zeit | 2019-12-29 15:20:33 |
Autor | Kazuhiro Fujieda <fujieda@user...> |
Commiter | Kazuhiro Fujieda |
一覧を戦況に自動で切り替えるかを設定可能にする
@@ -62,10 +62,11 @@ namespace KancolleSniffer | ||
62 | 62 | public Size Size { get; set; } |
63 | 63 | public string Mode { get; set; } |
64 | 64 | public ShipCategory ShipCategories { get; set; } = ShipCategory.All; |
65 | - public bool ShipType; | |
65 | + public bool ShipType { get; set; } | |
66 | 66 | public bool ShowHpInPercent { get; set; } |
67 | 67 | public ListForm.SortOrder SortOrder { get; set; } = ListForm.SortOrder.ExpToNext; |
68 | 68 | public List<List<int>> ShipGroup { get; set; } |
69 | + public bool AutoBattleResult { get; set; } = true; | |
69 | 70 | |
70 | 71 | public ShipListConfig() |
71 | 72 | { |
@@ -71,6 +71,7 @@ namespace KancolleSniffer | ||
71 | 71 | this.checkBoxBalloon = new System.Windows.Forms.CheckBox(); |
72 | 72 | this.checkBoxFlash = new System.Windows.Forms.CheckBox(); |
73 | 73 | this.tabPageAchievement = new System.Windows.Forms.TabPage(); |
74 | + this.checkBoxAutoBattleResult = new System.Windows.Forms.CheckBox(); | |
74 | 75 | this.checkBoxWarnBadDamageWithDamecon = new System.Windows.Forms.CheckBox(); |
75 | 76 | this.checkBoxPresetAkashi = new System.Windows.Forms.CheckBox(); |
76 | 77 | this.groupBox3 = new System.Windows.Forms.GroupBox(); |
@@ -493,6 +494,7 @@ namespace KancolleSniffer | ||
493 | 494 | // |
494 | 495 | // tabPageAchievement |
495 | 496 | // |
497 | + this.tabPageAchievement.Controls.Add(this.checkBoxAutoBattleResult); | |
496 | 498 | this.tabPageAchievement.Controls.Add(this.checkBoxWarnBadDamageWithDamecon); |
497 | 499 | this.tabPageAchievement.Controls.Add(this.checkBoxPresetAkashi); |
498 | 500 | this.tabPageAchievement.Controls.Add(this.groupBox3); |
@@ -505,24 +507,34 @@ namespace KancolleSniffer | ||
505 | 507 | this.tabPageAchievement.Text = "機能"; |
506 | 508 | this.tabPageAchievement.UseVisualStyleBackColor = true; |
507 | 509 | // |
510 | + // checkBoxAutoBattleResult | |
511 | + // | |
512 | + this.checkBoxAutoBattleResult.AutoSize = true; | |
513 | + this.checkBoxAutoBattleResult.Location = new System.Drawing.Point(143, 134); | |
514 | + this.checkBoxAutoBattleResult.Name = "checkBoxAutoBattleResult"; | |
515 | + this.checkBoxAutoBattleResult.Size = new System.Drawing.Size(96, 16); | |
516 | + this.checkBoxAutoBattleResult.TabIndex = 21; | |
517 | + this.checkBoxAutoBattleResult.Text = "戦況自動切替"; | |
518 | + this.checkBoxAutoBattleResult.UseVisualStyleBackColor = true; | |
519 | + // | |
508 | 520 | // checkBoxWarnBadDamageWithDamecon |
509 | 521 | // |
510 | 522 | this.checkBoxWarnBadDamageWithDamecon.AutoSize = true; |
511 | - this.checkBoxWarnBadDamageWithDamecon.Location = new System.Drawing.Point(20, 114); | |
523 | + this.checkBoxWarnBadDamageWithDamecon.Location = new System.Drawing.Point(20, 112); | |
512 | 524 | this.checkBoxWarnBadDamageWithDamecon.Name = "checkBoxWarnBadDamageWithDamecon"; |
513 | - this.checkBoxWarnBadDamageWithDamecon.Size = new System.Drawing.Size(168, 16); | |
525 | + this.checkBoxWarnBadDamageWithDamecon.Size = new System.Drawing.Size(124, 16); | |
514 | 526 | this.checkBoxWarnBadDamageWithDamecon.TabIndex = 20; |
515 | - this.checkBoxWarnBadDamageWithDamecon.Text = "ダメコン装備でも大破警告する"; | |
527 | + this.checkBoxWarnBadDamageWithDamecon.Text = "ダメコンあり大破警告"; | |
516 | 528 | this.checkBoxWarnBadDamageWithDamecon.UseVisualStyleBackColor = true; |
517 | 529 | // |
518 | 530 | // checkBoxPresetAkashi |
519 | 531 | // |
520 | 532 | this.checkBoxPresetAkashi.AutoSize = true; |
521 | - this.checkBoxPresetAkashi.Location = new System.Drawing.Point(20, 135); | |
533 | + this.checkBoxPresetAkashi.Location = new System.Drawing.Point(20, 134); | |
522 | 534 | this.checkBoxPresetAkashi.Name = "checkBoxPresetAkashi"; |
523 | - this.checkBoxPresetAkashi.Size = new System.Drawing.Size(141, 16); | |
535 | + this.checkBoxPresetAkashi.Size = new System.Drawing.Size(113, 16); | |
524 | 536 | this.checkBoxPresetAkashi.TabIndex = 19; |
525 | - this.checkBoxPresetAkashi.Text = "プリセット明石修理を使う"; | |
537 | + this.checkBoxPresetAkashi.Text = "プリセット明石修理"; | |
526 | 538 | this.checkBoxPresetAkashi.UseVisualStyleBackColor = true; |
527 | 539 | // |
528 | 540 | // groupBox3 |
@@ -1330,5 +1342,6 @@ namespace KancolleSniffer | ||
1330 | 1342 | private System.Windows.Forms.Label label17; |
1331 | 1343 | private System.Windows.Forms.Label label18; |
1332 | 1344 | private System.Windows.Forms.CheckBox checkBoxWarnBadDamageWithDamecon; |
1345 | + private System.Windows.Forms.CheckBox checkBoxAutoBattleResult; | |
1333 | 1346 | } |
1334 | 1347 | } |
\ No newline at end of file |
@@ -94,6 +94,7 @@ namespace KancolleSniffer | ||
94 | 94 | checkBoxNextCell.Checked = (_config.Spoilers & Spoiler.NextCell) != 0; |
95 | 95 | checkBoxPresetAkashi.Checked = _config.UsePresetAkashi; |
96 | 96 | checkBoxWarnBadDamageWithDamecon.Checked = _config.WarnBadDamageWithDameCon; |
97 | + checkBoxAutoBattleResult.Checked = _config.ShipList.AutoBattleResult; | |
97 | 98 | |
98 | 99 | numericUpDownSoundVolume.Value = _config.Sounds.Volume; |
99 | 100 | foreach (var name in Config.NotificationNames) |
@@ -200,6 +201,7 @@ namespace KancolleSniffer | ||
200 | 201 | (checkBoxNextCell.Checked ? Spoiler.NextCell : 0); |
201 | 202 | _config.UsePresetAkashi = checkBoxPresetAkashi.Checked; |
202 | 203 | _config.WarnBadDamageWithDameCon = checkBoxWarnBadDamageWithDamecon.Checked; |
204 | + _config.ShipList.AutoBattleResult = checkBoxAirBattleResult.Checked; | |
203 | 205 | |
204 | 206 | _config.Sounds.Volume = (int)numericUpDownSoundVolume.Value; |
205 | 207 | foreach (var name in Config.NotificationNames) |
@@ -169,7 +169,8 @@ namespace KancolleSniffer | ||
169 | 169 | |
170 | 170 | private void MoveToBattleResult() |
171 | 171 | { |
172 | - if (comboBoxGroup.SelectedIndex == BattleResultIndex || _sniffer.InSortie == -1) | |
172 | + if (!_config.ShipList.AutoBattleResult || comboBoxGroup.SelectedIndex == BattleResultIndex || | |
173 | + _sniffer.InSortie == -1) | |
173 | 174 | return; |
174 | 175 | _prevSelectedIndex = comboBoxGroup.SelectedIndex; |
175 | 176 | comboBoxGroup.SelectedIndex = BattleResultIndex; |