This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 9645 for ps


Ignore:
Timestamp:
06/22/11 23:11:37 (14 years ago)
Author:
ben
Message:

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

Location:
ps/trunk/binaries/data/mods/public/gui/session
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/gui/session/unit_commands.js

    r9631 r9645  
    220220            var tooltip = getEntityNameWithGenericType(template);
    221221            if (template.tooltip)
    222                 tooltip += "\n[font=\"serif-13\"]" + template.tooltip + " " + getPopulationBonus(template) + "[/font]";
     222                tooltip += "\n[font=\"serif-13\"]" + template.tooltip + getPopulationBonus(template) + "[/font]";
    223223
    224224            tooltip += "\n" + getEntityCost(template);
  • ps/trunk/binaries/data/mods/public/gui/session/utility_functions.js

    r9441 r9645  
    330330    var popBonus = "";
    331331    if (template.cost.populationBonus)
    332         popBonus = "[font=\"serif-bold-13\"]Population Bonus:[/font] " + template.cost.populationBonus;
     332        popBonus = "\n[font=\"serif-bold-13\"]Population Bonus:[/font] " + template.cost.populationBonus;
    333333    return popBonus;
    334334}
Note: See TracChangeset for help on using the changeset viewer.