1
0
forked from 0ad/0ad

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:
Freagarach 2023-08-16 09:56:57 +00:00
parent 48de9e32f0
commit abe2ab4f08
2 changed files with 3 additions and 3 deletions

View File

@ -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" },

View File

@ -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"))