diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d9494cd20..57d5585067 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file. - [Multiple] Better version specific relationships at install and upgrade (#4023 by: HebaruSan) - [GUI] Proportional, granular progress updates for installing (#4055 by: HebaruSan) - [GUI] Modpack compatibility prompt, GameComparator clean-up (#4056 by: HebaruSan) +- [ConsoleUI] Add downloads column for ConsoleUI (#4063 by: HebaruSan) ### Bugfixes diff --git a/ConsoleUI/ModListScreen.cs b/ConsoleUI/ModListScreen.cs index 838da7a63f..2a2700aa30 100644 --- a/ConsoleUI/ModListScreen.cs +++ b/ConsoleUI/ModListScreen.cs @@ -57,6 +57,14 @@ public ModListScreen(GameInstanceManager mgr, RepositoryDataManager repoData, Re Width = 20, Renderer = m => registry.LatestCompatibleGameVersion(game.KnownVersions, m.identifier)?.ToString() ?? "", Comparer = (a, b) => registry.LatestCompatibleGameVersion(game.KnownVersions, a.identifier).CompareTo(registry.LatestCompatibleGameVersion(game.KnownVersions, b.identifier)) + }, new ConsoleListBoxColumn() { + Header = Properties.Resources.ModListDownloadsHeader, + Width = 12, + Renderer = m => repoData.GetDownloadCount(registry.Repositories.Values, m.identifier) + ?.ToString() + ?? "", + Comparer = (a, b) => (repoData.GetDownloadCount(registry.Repositories.Values, a.identifier) ?? 0) + .CompareTo(repoData.GetDownloadCount(registry.Repositories.Values, b.identifier) ?? 0), } }, 1, 0, ListSortDirection.Descending, diff --git a/ConsoleUI/Properties/Resources.fr-FR.resx b/ConsoleUI/Properties/Resources.fr-FR.resx index dd9810ce8d..8a92c5114f 100644 --- a/ConsoleUI/Properties/Resources.fr-FR.resx +++ b/ConsoleUI/Properties/Resources.fr-FR.resx @@ -663,6 +663,9 @@ Si vous le retirez, CKAN ne pourra pas le réinstaller. Version de jeu max + + Nombre de téléchargements + <Taper pour faire une recherche> diff --git a/ConsoleUI/Properties/Resources.it-IT.resx b/ConsoleUI/Properties/Resources.it-IT.resx index dc11f476f0..a297719966 100644 --- a/ConsoleUI/Properties/Resources.it-IT.resx +++ b/ConsoleUI/Properties/Resources.it-IT.resx @@ -663,6 +663,9 @@ Se la disinstalli, CKAN non sarà in grado di reinstallarla. Versione massima del gioco + + Download + <Digita per cercare> diff --git a/ConsoleUI/Properties/Resources.pl-PL.resx b/ConsoleUI/Properties/Resources.pl-PL.resx index 6f37a5fc53..d0e6641b3d 100644 --- a/ConsoleUI/Properties/Resources.pl-PL.resx +++ b/ConsoleUI/Properties/Resources.pl-PL.resx @@ -663,6 +663,9 @@ Jeśli go odinstalujesz, CKAN nie będzie mógł go ponownie zainstalować. Maksymalna wersja gry + + Ilość pobrań + <Wyszukaj> diff --git a/ConsoleUI/Properties/Resources.resx b/ConsoleUI/Properties/Resources.resx index 95f2a7a09c..548629d549 100644 --- a/ConsoleUI/Properties/Resources.resx +++ b/ConsoleUI/Properties/Resources.resx @@ -305,6 +305,7 @@ If you uninstall it, CKAN will not be able to re-install it. Name Version Max game version + Downloads <Type to search> <Ctrl+F to search> {0} mods diff --git a/ConsoleUI/Properties/Resources.ru-RU.resx b/ConsoleUI/Properties/Resources.ru-RU.resx index 5f3c2c53b6..3a7c0da4c6 100644 --- a/ConsoleUI/Properties/Resources.ru-RU.resx +++ b/ConsoleUI/Properties/Resources.ru-RU.resx @@ -663,6 +663,9 @@ Макс.вер. + + Загрузки + <Введите текст для поиска...>