Describe non-airport "runways" better.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/3290.
This commit is contained in:
Dan Albert
2023-12-21 16:03:23 -08:00
parent ef69275f34
commit dcf23c655d
3 changed files with 37 additions and 15 deletions

View File

@@ -254,19 +254,22 @@ class QBaseMenu2(QDialog):
f" (Up to {ground_unit_limit} deployable, {unit_overage} reserve)"
)
self.intel_summary.setText(
"\n".join(
[
f"{aircraft}/{parking} aircraft",
f"{self.cp.base.total_armor} ground units" + deployable_unit_info,
f"{allocated.total_transferring} more ground units en route, {allocated.total_ordered} ordered",
str(self.cp.runway_status),
f"{self.cp.active_ammo_depots_count}/{self.cp.total_ammo_depots_count} ammo depots",
f"{'Factory can produce units' if self.cp.has_factory else 'Does not have a factory'}",
]
)
intel_lines = [
f"{aircraft}/{parking} aircraft",
f"{self.cp.base.total_armor} ground units" + deployable_unit_info,
f"{allocated.total_transferring} more ground units en route, {allocated.total_ordered} ordered",
]
if (runway_description := self.cp.describe_runway_status()) is not None:
intel_lines.append(runway_description)
intel_lines.extend(
[
f"{self.cp.active_ammo_depots_count}/{self.cp.total_ammo_depots_count} ammo depots",
f"{'Factory can produce units' if self.cp.has_factory else 'Does not have a factory'}",
]
)
self.intel_summary.setText("\n".join(intel_lines))
def generate_intel_tooltip(self) -> str:
tooltip = (
f"Deployable unit limit ({self.cp.frontline_unit_count_limit}) = {FREE_FRONTLINE_UNIT_SUPPLY} (base) + "