From 901ee216e98b7989ee19b5ccbb961278e58c88b9 Mon Sep 17 00:00:00 2001 From: IllianiCBT Date: Thu, 26 Sep 2024 14:58:37 -0500 Subject: [PATCH] Added Clarification to Maintenance Cycle Campaign Setting Updated the maintenance cycle label to clarify its application during combat operations and added a tooltip for better understanding. This ensures users are aware of the different maintenance frequencies during peacetime versus non-Garrison contracts. --- .../resources/mekhq/resources/CampaignOptionsDialog.properties | 3 ++- MekHQ/src/mekhq/gui/panes/CampaignOptionsPane.java | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/MekHQ/resources/mekhq/resources/CampaignOptionsDialog.properties b/MekHQ/resources/mekhq/resources/CampaignOptionsDialog.properties index 86b6c13f98..81bbff2f0d 100644 --- a/MekHQ/resources/mekhq/resources/CampaignOptionsDialog.properties +++ b/MekHQ/resources/mekhq/resources/CampaignOptionsDialog.properties @@ -30,7 +30,8 @@ lblSubRepair.text=Repair lblSubMaintenance.text=Maintenance checkMaintenance.text=Make maintenance checks checkMaintenance.toolTipText=If checked, each unit will make a parts-specific maintenance check at the end of each maintenance cycle -lblMaintenanceDays.text=Maintenance cycle length in days +lblMaintenanceDays.text=Maintenance cycle length in days (combat) +lblMaintenanceDays.toolTipText=This setting determines how frequently maintenance checks are made while on non-Garrison contracts. Peacetime frequency is x4 this value. lblMaintenanceBonus.text=Maintenance modifier spnMaintenanceBonus.toolTipText=When checking by parts, Strat Ops applies a -1 bonus to the maintenance check target - you can change this modifier with this value useQualityMaintenance.text=Use quality modifiers in maintenance checks diff --git a/MekHQ/src/mekhq/gui/panes/CampaignOptionsPane.java b/MekHQ/src/mekhq/gui/panes/CampaignOptionsPane.java index 9b945d08e0..e055341617 100644 --- a/MekHQ/src/mekhq/gui/panes/CampaignOptionsPane.java +++ b/MekHQ/src/mekhq/gui/panes/CampaignOptionsPane.java @@ -1057,6 +1057,7 @@ private JScrollPane createRepairAndMaintenanceTab() { JPanel pnlMaintenanceDays = new JPanel(); pnlMaintenanceDays.add(spnMaintenanceDays); pnlMaintenanceDays.add(new JLabel(resources.getString("lblMaintenanceDays.text"))); + pnlMaintenanceDays.setToolTipText(wordWrap(resources.getString("lblMaintenanceDays.toolTipText"))); gridBagConstraints = new GridBagConstraints(); gridBagConstraints.gridx = 0; gridBagConstraints.gridy = 1;