this.labelFuelSq4 = new System.Windows.Forms.Label();\r
this.toolTipAchievement = new System.Windows.Forms.ToolTip(this.components);\r
this.labelAkashiRepair = new System.Windows.Forms.Label();\r
+ this.labelPresetAkashiTimer = new System.Windows.Forms.Label();\r
this.panelHeadquarters.SuspendLayout();\r
this.panelShipInfo.SuspendLayout();\r
this.panelBattleInfo.SuspendLayout();\r
// panelShipInfo\r
// \r
this.panelShipInfo.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;\r
+ this.panelShipInfo.Controls.Add(this.labelPresetAkashiTimer);\r
this.panelShipInfo.Controls.Add(this.labelGuide);\r
this.panelShipInfo.Controls.Add(this.panelCombinedFleet);\r
this.panelShipInfo.Controls.Add(this.panelBattleInfo);\r
this.labelAkashiRepair.TabIndex = 54;\r
this.labelAkashiRepair.Text = "修理";\r
// \r
+ // labelPresetAkashiTimer\r
+ // \r
+ this.labelPresetAkashiTimer.Location = new System.Drawing.Point(2, 3);\r
+ this.labelPresetAkashiTimer.Name = "labelPresetAkashiTimer";\r
+ this.labelPresetAkashiTimer.Size = new System.Drawing.Size(31, 12);\r
+ this.labelPresetAkashiTimer.TabIndex = 55;\r
+ // \r
// MainForm\r
// \r
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);\r
private System.Windows.Forms.Label labelGuide;\r
private System.Windows.Forms.Panel panelCombinedFleet;\r
private System.Windows.Forms.Label labelAkashiRepair;\r
+ private System.Windows.Forms.Label labelPresetAkashiTimer;\r
}\r
}\r
\r
_ndockFinishTimeMode = !_ndockFinishTimeMode;\r
UpdateTimers();\r
});\r
+ labelPresetAkashiTimer.BackColor = ShipLabels.ColumnColors[1];\r
_shipListForm = new ShipListForm(_sniffer, _config) {Owner = this};\r
_noticeQueue = new NoticeQueue(Ring);\r
}\r
_sniffer.Item.MarginShips = _config.MarginShips;\r
_sniffer.Item.MarginEquips = _config.MarginEquips;\r
_sniffer.Achievement.ResetHours = _config.ResetHours;\r
- labelAkashiRepair.Visible = labelAkashiRepairTimer.Visible = _config.UsePresetAkashi;\r
+ labelAkashiRepair.Visible = labelAkashiRepairTimer.Visible =\r
+ labelPresetAkashiTimer.Visible = _config.UsePresetAkashi;\r
}\r
\r
public void ApplyDebugLogSetting()\r
\r
private void UpdateAkashiTimer()\r
{\r
+ if (_config.UsePresetAkashi)\r
+ UpdatePresetAkashiTimer();\r
+ _shipLabels.SetAkashiTimer(_sniffer.GetShipStatuses(_currentFleet),\r
+ _sniffer.AkashiTimer.GetTimers(_currentFleet));\r
+ NotifyAkashiTimer();\r
+ }\r
+\r
+ private void UpdatePresetAkashiTimer()\r
+ {\r
var akashi = _sniffer.AkashiTimer;\r
var span = akashi.PresetDeckTimer;\r
- if (_config.UsePresetAkashi)\r
+ var color = span == TimeSpan.Zero && akashi.CheckPresetReparing() ? Color.Red : DefaultForeColor;\r
+ var text = span == TimeSpan.MinValue ? "" : span.ToString(@"mm\:ss");\r
+ labelAkashiRepairTimer.ForeColor = color;\r
+ labelAkashiRepairTimer.Text = text;\r
+ if (akashi.CheckPresetReparing() && !akashi.CheckReparing(_currentFleet))\r
{\r
- labelAkashiRepairTimer.ForeColor =\r
- span == TimeSpan.Zero && akashi.CheckPresetReparing() ? Color.Red : DefaultForeColor;\r
- labelAkashiRepairTimer.Text = span == TimeSpan.MinValue ? "" : span.ToString(@"mm\:ss");\r
+ labelPresetAkashiTimer.ForeColor = color;\r
+ labelPresetAkashiTimer.Text = text;\r
+ }\r
+ else\r
+ {\r
+ labelPresetAkashiTimer.ForeColor = DefaultForeColor;\r
+ labelPresetAkashiTimer.Text = "";\r
}\r
- _shipLabels.SetAkashiTimer(_sniffer.GetShipStatuses(_currentFleet), akashi.GetTimers(_currentFleet));\r
- NotifyAkashiTimer();\r
}\r
\r
private void UpdateDamagedShipList()\r