From b0f8cbadb92163bc46e75afc7d845ad65b4e8010 Mon Sep 17 00:00:00 2001 From: phosit Date: Sun, 9 Aug 2026 14:43:33 +0200 Subject: [PATCH] Expand the tooltip for population cap --- .../mods/public/gui/session/top_panel/CounterPopulation.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/binaries/data/mods/public/gui/session/top_panel/CounterPopulation.js b/binaries/data/mods/public/gui/session/top_panel/CounterPopulation.js index 5e9e363038..8163885ee7 100644 --- a/binaries/data/mods/public/gui/session/top_panel/CounterPopulation.js +++ b/binaries/data/mods/public/gui/session/top_panel/CounterPopulation.js @@ -32,7 +32,8 @@ class CounterPopulation this.isTrainingBlocked = playerState.trainingBlocked; this.panel.tooltip = - setStringTags(translate(this.PopulationTooltip), CounterManager.ResourceTitleTags) + + setStringTags(translate(this.PopulationTooltipTitle), CounterManager.ResourceTitleTags) + + "\n" + sprintf(this.PopulationTooltip, state) + getAllyStatTooltip(this.getTooltipData.bind(this)) + "\n" + sprintf(this.CurrentGatherersTooltip, { "currentGatherers": colorizedTotal }); } @@ -65,7 +66,9 @@ class CounterPopulation // Translation: Do not insert spaces around the slash symbol for this exact string. Keep only one space between popLimit and popMax. CounterPopulation.prototype.CounterCaption = markForTranslation("%(popCount)s/%(popLimit)s (%(popMax)s)"); -CounterPopulation.prototype.PopulationTooltip = markForTranslation("Population: current/limit (max)"); +CounterPopulation.prototype.PopulationTooltipTitle = markForTranslation("Population"); +CounterPopulation.prototype.PopulationTooltip = + translate("Current population: %(popCount)s\nPopulation limit: %(popLimit)s\nMaximum population: %(popMax)s"); CounterPopulation.prototype.AllyPopulationTooltip = markForTranslation("%(popCount)s/%(popLimit)s (%(popMax)s)");