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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user