1
0
forked from 0ad/0ad

Change health bar tooltip from hitpoints to health

This was SVN commit r9473.
This commit is contained in:
WhiteTreePaladin 2011-05-07 02:57:23 +00:00
parent c49f4c677b
commit 1a17fde105

View File

@ -57,7 +57,7 @@ function displaySingle(entState, template)
healthSize.rtop = 100-100*Math.max(0, Math.min(1, entState.hitpoints / entState.maxHitpoints));
unitHealthBar.size = healthSize;
hitpoints = "[font=\"serif-bold-13\"]Hitpoints [/font]" + entState.hitpoints + "/" + entState.maxHitpoints;
hitpoints = "[font=\"serif-bold-13\"]Health [/font]" + entState.hitpoints + "/" + entState.maxHitpoints;
getGUIObjectByName("health").tooltip = hitpoints;
getGUIObjectByName("health").hidden = false;
}