mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-08-15 14:43:32 -07:00
Compare commits
2 commits
0812ad6fd6
...
b0f8cbadb9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b0f8cbadb9 | ||
|
|
b885acbd93 |
1 changed files with 6 additions and 3 deletions
|
|
@ -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)");
|
||||
|
||||
|
|
@ -75,7 +78,7 @@ CounterPopulation.prototype.AllyPopulationTooltip = markForTranslation("%(popCou
|
|||
* isn't enough to associate it with the number in the top panel.
|
||||
*/
|
||||
CounterPopulation.prototype.CurrentGatherersTooltip =
|
||||
setStringTags(translate("Current gatherers: %(currentGatherers)s"), { "font": "sans-bold-16" });
|
||||
setStringTags(translate("Current gatherers: %(currentGatherers)s"), { "font": "sans-14" });
|
||||
|
||||
/**
|
||||
* Color to highlight the total number of gatherers at zero.
|
||||
|
|
|
|||
Loading…
Reference in a new issue