Moves population bonus to new line in construction tooltip (based on patch from pejuko). Fixes #873

This was SVN commit r9645.
This commit is contained in:
historic_bruno 2011-06-22 21:11:37 +00:00
parent b99b37387b
commit 889f4698f2
2 changed files with 2 additions and 2 deletions

View File

@ -219,7 +219,7 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, items, callback)
case CONSTRUCTION:
var tooltip = getEntityNameWithGenericType(template);
if (template.tooltip)
tooltip += "\n[font=\"serif-13\"]" + template.tooltip + " " + getPopulationBonus(template) + "[/font]";
tooltip += "\n[font=\"serif-13\"]" + template.tooltip + getPopulationBonus(template) + "[/font]";
tooltip += "\n" + getEntityCost(template);
break;

View File

@ -329,7 +329,7 @@ function getPopulationBonus(template)
{
var popBonus = "";
if (template.cost.populationBonus)
popBonus = "[font=\"serif-bold-13\"]Population Bonus:[/font] " + template.cost.populationBonus;
popBonus = "\n[font=\"serif-bold-13\"]Population Bonus:[/font] " + template.cost.populationBonus;
return popBonus;
}