From 5d01c8d381bbee002badaaac5a3870345e0ba345 Mon Sep 17 00:00:00 2001 From: maj00r Date: Fri, 4 Sep 2026 23:40:29 +0200 Subject: [PATCH] List vehicles by texture name, not thumbnail name The list called a vehicle something no other panel used: the detail tab, the old starter and the sort key all name it by its texture file. --- StarterNG/Views/Depot/VehicleBrowser.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/StarterNG/Views/Depot/VehicleBrowser.cs b/StarterNG/Views/Depot/VehicleBrowser.cs index 6fc0ac8..96210d9 100644 --- a/StarterNG/Views/Depot/VehicleBrowser.cs +++ b/StarterNG/Views/Depot/VehicleBrowser.cs @@ -509,13 +509,10 @@ public sealed class VehicleBrowser // somewhere else entirely, which is why the list looked reshuffled. private static readonly StringComparer TextureOrder = StringComparer.CurrentCultureIgnoreCase; - private static string BrowserName(VehicleTexture texture) - { - if (!string.IsNullOrEmpty(texture.TextureMini) && - !string.Equals(texture.TextureMini, texture.ResolvedClass, StringComparison.OrdinalIgnoreCase)) - return texture.TextureMini!; - return Consist.Base(texture.Skinfile); - } + // The texture's own file name, as the old starter listed it and as the detail + // panel names it. The thumbnail name went here before, which meant the list + // called a vehicle something none of the other panels did. + private static string BrowserName(VehicleTexture texture) => Consist.Base(texture.Skinfile); private string BrowserLabel(VehicleTexture texture, IReadOnlyList? set) {