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 053a8e7f93..67dfeeac1b 100644 --- a/binaries/data/mods/public/gui/session/top_panel/CounterPopulation.js +++ b/binaries/data/mods/public/gui/session/top_panel/CounterPopulation.js @@ -29,7 +29,7 @@ class CounterPopulation this.panel.tooltip = setStringTags(translate(this.PopulationTooltip), CounterManager.ResourceTitleTags) + - getAllyStatTooltip(this.getTooltipData.bind(this)) + "\n" + coloredText(this.CurrentGatherersTooltip, total ? this.DefaultTotalGatherersColor : this.DefaultTotalGatherersColorZero); + getAllyStatTooltip(this.getTooltipData.bind(this)); } getTooltipData(playerState, playername) @@ -64,11 +64,6 @@ CounterPopulation.prototype.PopulationTooltip = markForTranslation("Population: CounterPopulation.prototype.AllyPopulationTooltip = markForTranslation("%(popCount)s/%(popLimit)s (%(popMax)s)"); -/** - * Storing the translated and formatted gatherer string in the prototype. - */ -CounterPopulation.prototype.CurrentGatherersTooltip = setStringTags(translate("Gatherers: current"), {"font": "sans-bold-16"}); - /** * Color to highlight the total number of gatherers at zero. */ diff --git a/binaries/data/mods/public/gui/session/top_panel/CounterResource.js b/binaries/data/mods/public/gui/session/top_panel/CounterResource.js index 6d9eba777c..61ec34b8b4 100644 --- a/binaries/data/mods/public/gui/session/top_panel/CounterResource.js +++ b/binaries/data/mods/public/gui/session/top_panel/CounterResource.js @@ -28,7 +28,7 @@ class CounterResource this.panel.tooltip = setStringTags(resourceNameFirstWord(this.resCode), CounterManager.ResourceTitleTags) + description + - getAllyStatTooltip(this.getTooltipData.bind(this)) + "\n" + coloredText(CounterPopulation.prototype.CurrentGatherersTooltip, gatherers ? this.DefaultResourceGatherersColor : this.DefaultResourceGatherersColorZero); + getAllyStatTooltip(this.getTooltipData.bind(this)); } getTooltipData(playerState, playername)