Index: selection_details.js
===================================================================
--- selection_details.js
+++ selection_details.js
@@ -138,6 +138,7 @@
let healthSize = unitHealthBar.size;
healthSize.rright = 100 * Math.max(0, Math.min(1, entState.hitpoints / entState.maxHitpoints));
unitHealthBar.size = healthSize;
+
Engine.GetGUIObjectByName("healthStats").caption = sprintf(translate("%(hitpoints)s / %(maxHitpoints)s"), {
"hitpoints": Math.ceil(entState.hitpoints),
"maxHitpoints": Math.ceil(entState.maxHitpoints)
@@ -186,7 +187,7 @@
let showSmallCapture = showResource && showHealth;
Engine.GetGUIObjectByName("captureStats").caption = showSmallCapture ? "" : captureText;
- Engine.GetGUIObjectByName("capture").tooltip = showSmallCapture ? captureText : "";
+ Engine.GetGUIObjectByName("captureTooltip").tooltip = showSmallCapture ? getCurrentCaptureTooltip(entState) : translate("Capture Points");
}
// Experience
@@ -319,7 +320,7 @@
let isGaia = playerState.civ == "gaia";
Engine.GetGUIObjectByName("playerCivIcon").sprite = isGaia ? "" : "cropped:1.0, 0.15625 center:grayscale:" + civEmblem;
- Engine.GetGUIObjectByName("player").tooltip = isGaia ? "" : civName;
+ Engine.GetGUIObjectByName("civilizationTooltip").tooltip = isGaia ? "" : civName;
// TODO: we should require all entities to have icons
Engine.GetGUIObjectByName("icon").sprite = template.icon ? ("stretched:session/portraits/" + template.icon) : "BackgroundBlack";
Index: selection_panels_middle/single_details_area.xml
===================================================================
--- selection_panels_middle/single_details_area.xml
+++ selection_panels_middle/single_details_area.xml
@@ -15,6 +15,7 @@
+
@@ -34,27 +35,10 @@
-
-
-
-
- Capture points
-
-
+
@@ -61,8 +45,23 @@
+
+
+
+
+
+
+
+
+
+
+
+ Health
+
+
+