forked from 0ad/0ad
Remove the Costs: prefix from tooltips entirely.
This was SVN commit r13837.
This commit is contained in:
parent
e646cf19bf
commit
e7fa9a58de
@ -458,7 +458,7 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, playerState, items, c
|
||||
if (Engine.HotkeyIsPressed("session.batchtrain"))
|
||||
trainNum = buildingsCountToTrainFullBatch * fullBatchSize + remainderBatch;
|
||||
|
||||
tooltip += "\n" + getEntityCostTooltip(template, trainNum, unitEntState.id, "");
|
||||
tooltip += "\n" + getEntityCostTooltip(template, trainNum, unitEntState.id);
|
||||
|
||||
var [trainEntLimit, trainEntCount, canBeAddedCount] =
|
||||
getEntityLimitAndCount(playerState, entType);
|
||||
@ -489,7 +489,7 @@ function setupUnitPanel(guiName, usedPanels, unitEntState, playerState, items, c
|
||||
if (template.tooltip)
|
||||
tooltip += "\n[font=\"serif-13\"]" + template.tooltip + "[/font]";
|
||||
|
||||
tooltip += "\n" + getEntityCostTooltip(template, null, null, "");
|
||||
tooltip += "\n" + getEntityCostTooltip(template);
|
||||
tooltip += getPopulationBonusTooltip(template);
|
||||
|
||||
var [entLimit, entCount, canBeAddedCount] =
|
||||
|
@ -400,12 +400,9 @@ function getWallPieceTooltip(wallTypes)
|
||||
/**
|
||||
* Returns the cost information to display in the specified entity's construction button tooltip.
|
||||
*/
|
||||
function getEntityCostTooltip(template, trainNum, entity, prefix)
|
||||
function getEntityCostTooltip(template, trainNum, entity)
|
||||
{
|
||||
if (prefix == null)
|
||||
prefix = "[font=\"serif-bold-13\"]Costs:[/font] ";
|
||||
|
||||
var cost = prefix;
|
||||
var cost = "";
|
||||
|
||||
// Entities with a wallset component are proxies for initiating wall placement and as such do not have a cost of
|
||||
// their own; the individual wall pieces within it do.
|
||||
|
Loading…
Reference in New Issue
Block a user