forked from 0ad/0ad
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:
parent
b99b37387b
commit
889f4698f2
@ -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;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user