Ticket #1902: hero_colors.diff
File hero_colors.diff, 1.5 KB (added by , 11 years ago) |
---|
-
binaries/data/mods/public/gui/session/session.js
473 473 // Show max attack range if ranged attack, also convert to tiles (4m per tile) 474 474 if (heroState.attack && heroState.attack.type == "Ranged") 475 475 tooltip += ", [font=\"serif-bold-13\"]Range:[/font] " + Math.round(heroState.attack.maxRange/4); 476 476 477 // Apply a red overlay to the icon if the hero's health goes below 50% 478 if (heroState.hitpoints <= heroState.maxHitpoints / 2) 479 getGUIObjectByName('heroOverlay').hidden = false; 480 477 481 tooltip += "\n[font=\"serif-bold-13\"]Armor:[/font] " + damageTypeDetails(heroState.armour); 478 482 tooltip += "\n" + template.tooltip; 479 483 -
binaries/data/mods/public/gui/session/session.xml
793 793 <object name="unitHeroButton" size="0 0 50 50" type="button" hidden="false" style="iconButton" 794 794 tooltip_style="sessionToolTip" tooltip="Attack and Armor"> 795 795 <object name="unitHeroImage" size="5 5 100%-5 100%-5" type="image" ghost="true"/> 796 <object name="heroOverlay" hidden="true" type="image" ghost="true" size="0 0 50 50" sprite="colour: 255 0 0 60"/> 796 797 </object> 797 798 </object> 798 799