Don't show the amount in the mutli-entity view when merely one type of a unit is selected.
Patch by: @abian Differential revision: https://code.wildfiregames.com/D5075 Fixes #6841 This was SVN commit r27801.
This commit is contained in:
parent
48de9e32f0
commit
abe2ab4f08
@ -21,6 +21,7 @@
|
||||
{
|
||||
"List": [
|
||||
{ "nick": "01d55" },
|
||||
{ "nick": "abian", "name": "David Abián" },
|
||||
{ "nick": "aBothe", "name": "Alexander Bothe" },
|
||||
{ "nick": "animus", "name": "Itay Krishtal" },
|
||||
{ "nick": "Acumen", "name": "Stuart Walpole" },
|
||||
@ -73,7 +74,6 @@
|
||||
{ "name": "Daniel Trevitz" },
|
||||
{ "nick": "Dariost", "name": "Dario Ostuni" },
|
||||
{ "nick": "Dave", "name": "David Protasowski" },
|
||||
{ "name": "David Abián" },
|
||||
{ "name": "David Marshall" },
|
||||
{ "nick": "dax", "name": "Dacian Fiordean" },
|
||||
{ "nick": "deebee", "name": "Deepak Anthony" },
|
||||
|
@ -330,7 +330,7 @@ g_SelectionPanels.Garrison = {
|
||||
unloadTemplate(template.selectionGroupName || entState.template, entState.player);
|
||||
};
|
||||
|
||||
data.countDisplay.caption = data.item.ents.length || "";
|
||||
data.countDisplay.caption = data.item.ents.length > 1 ? data.item.ents.length : "";
|
||||
|
||||
let canUngarrison = controlsPlayer(data.player) || controlsPlayer(entState.player);
|
||||
|
||||
@ -926,7 +926,7 @@ g_SelectionPanels.Selection = {
|
||||
data.guiSelection.sprite = "color:" + g_DiplomacyColors.getPlayerColor(unitOwner, 160);
|
||||
data.guiSelection.hidden = !g_IsObserver;
|
||||
|
||||
data.countDisplay.caption = data.item.ents.length || "";
|
||||
data.countDisplay.caption = data.item.ents.length > 1 ? data.item.ents.length : "";
|
||||
|
||||
data.button.onPress = function() {
|
||||
if (Engine.HotkeyIsPressed("session.deselectgroup"))
|
||||
|
Loading…
Reference in New Issue
Block a user