Ticket #3738: 3738_tooltipBonus.patch

File 3738_tooltipBonus.patch, 651 bytes (added by s0600204, 8 years ago)

Patch to add population bonuses to structree tooltips

  • binaries/data/mods/public/gui/structree/draw.js

    diff --git a/binaries/data/mods/public/gui/structree/draw.js b/binaries/data/mods/public/gui/structree/draw.js
    index 9d1c755..1e655b4 100644
    a b function assembleTooltip(template)  
    358358    if (template.armour)
    359359        txt += '\n' + getArmorTooltip(template.armour);
    360360
    361     txt += '\n' + getSpeedTooltip(template);
     361    if (template.speed)
     362        txt += '\n' + getSpeedTooltip(template);
    362363
    363364    if (template.gather)
    364365    {
    function assembleTooltip(template)  
    375376        });
    376377    }
    377378
     379    txt += getPopulationBonusTooltip(template);
     380
    378381    return txt;
    379382}