1
0
forked from mirrors/0ad

Remove two unneeded newlines in the needed resources tooltip.

Don't display the projectile tooltip in the construction panel, since
that also doesn't show the attack tooltip.

(Since there is not much choice between attacking structures, the attack
information doesn't help deciding which
structure to build. Displaying the tooltips would require 3 lines.)

This was SVN commit r18737.
This commit is contained in:
elexis
2016-09-20 00:38:36 +00:00
parent 4391498cf4
commit b5340a19ad
2 changed files with 4 additions and 2 deletions
@@ -465,7 +465,10 @@ function getNeededResourcesTooltip(resources)
"cost": resources[resource]
}));
return '\n[font="sans-bold-13"][color="red"]' + translate("Insufficient resources:") + '[/color][/font]\n' + formatted.join(" ");
return '[font="sans-bold-13"][color="red"]' +
translate("Insufficient resources:") +
'[/color][/font]' + " " +
formatted.join(" ");
}
function getSpeedTooltip(template)
@@ -314,7 +314,6 @@ g_SelectionPanels.Construction = {
getEntityTooltip,
getEntityCostTooltip,
getGarrisonTooltip,
getProjectilesTooltip,
getPopulationBonusTooltip
].map(func => func(template));