From 272efcc364aabfd247d93162853e99b603011978 Mon Sep 17 00:00:00 2001 From: WhiteTreePaladin Date: Mon, 25 Jun 2012 03:43:34 +0000 Subject: [PATCH] K776's minor GUI changes This was SVN commit r12017. --- .../mods/public/gui/session/selection_details.js | 13 ++++++------- binaries/data/mods/public/gui/session/session.xml | 10 +++++----- binaries/data/mods/public/gui/session/styles.xml | 10 +++++++++- 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/binaries/data/mods/public/gui/session/selection_details.js b/binaries/data/mods/public/gui/session/selection_details.js index a3190ac0cf..ba9240915a 100644 --- a/binaries/data/mods/public/gui/session/selection_details.js +++ b/binaries/data/mods/public/gui/session/selection_details.js @@ -51,7 +51,7 @@ function displaySingle(entState, template) healthSize.rright = 100*Math.max(0, Math.min(1, entState.hitpoints / entState.maxHitpoints)); unitHealthBar.size = healthSize; - var hitpoints = entState.hitpoints + "/" + entState.maxHitpoints; + var hitpoints = entState.hitpoints + " / " + entState.maxHitpoints; getGUIObjectByName("healthStats").caption = hitpoints; getGUIObjectByName("healthSection").hidden = false; } @@ -81,7 +81,7 @@ function displaySingle(entState, template) var experience = "[font=\"serif-bold-13\"]Experience: [/font]" + Math.floor(entState.promotion.curr); if (entState.promotion.curr < entState.promotion.req) - experience += "/" + entState.promotion.req; + experience += " / " + entState.promotion.req; getGUIObjectByName("experience").tooltip = experience; getGUIObjectByName("experience").hidden = false; } @@ -93,7 +93,7 @@ function displaySingle(entState, template) // Resource stats if (entState.resourceSupply) { - var resources = Math.ceil(+entState.resourceSupply.amount) + "/" + entState.resourceSupply.max; + var resources = Math.ceil(+entState.resourceSupply.amount) + " / " + entState.resourceSupply.max; var resourceType = entState.resourceSupply.type["generic"]; if (resourceType == "treasure") resourceType = entState.resourceSupply.type["specific"]; @@ -127,7 +127,7 @@ function displaySingle(entState, template) getGUIObjectByName("resourceCarryingIcon").hidden = false; getGUIObjectByName("resourceCarryingText").hidden = false; getGUIObjectByName("resourceCarryingIcon").sprite = "stretched:session/icons/resources/"+carried.type+".png"; - getGUIObjectByName("resourceCarryingText").caption = carried.amount + "/" + carried.max; + getGUIObjectByName("resourceCarryingText").caption = carried.amount + " / " + carried.max; } // Use the same indicators for traders else if (entState.trader && entState.trader.goods.amount > 0) @@ -226,11 +226,10 @@ function displayMultiple(selection, template) healthSize.rtop = 100-100*Math.max(0, Math.min(1, averageHealth / maxHealth)); unitHealthBar.size = healthSize; - var hitpoints = "[font=\"serif-bold-13\"]Hitpoints [/font]" + averageHealth + "/" + maxHealth; + var hitpoints = "[font=\"serif-bold-13\"]Hitpoints [/font]" + averageHealth + " / " + maxHealth; var healthMultiple = getGUIObjectByName("healthMultiple"); healthMultiple.tooltip = hitpoints; - healthMultiple.hidden = false; - } + healthMultiple.hidden = false; } else { getGUIObjectByName("healthMultiple").hidden = true; diff --git a/binaries/data/mods/public/gui/session/session.xml b/binaries/data/mods/public/gui/session/session.xml index cc325209ce..409113f11d 100644 --- a/binaries/data/mods/public/gui/session/session.xml +++ b/binaries/data/mods/public/gui/session/session.xml @@ -659,11 +659,11 @@ - + - - + + @@ -694,7 +694,7 @@ - + @@ -759,7 +759,7 @@ type="image" z="30" > - +