mirror of
https://github.com/MaSzyna-EU07/StarterNG.git
synced 2026-10-16 23:49:19 +02:00
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.
This commit is contained in:
@@ -509,13 +509,10 @@ public sealed class VehicleBrowser
|
|||||||
// somewhere else entirely, which is why the list looked reshuffled.
|
// somewhere else entirely, which is why the list looked reshuffled.
|
||||||
private static readonly StringComparer TextureOrder = StringComparer.CurrentCultureIgnoreCase;
|
private static readonly StringComparer TextureOrder = StringComparer.CurrentCultureIgnoreCase;
|
||||||
|
|
||||||
private static string BrowserName(VehicleTexture texture)
|
// 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
|
||||||
if (!string.IsNullOrEmpty(texture.TextureMini) &&
|
// called a vehicle something none of the other panels did.
|
||||||
!string.Equals(texture.TextureMini, texture.ResolvedClass, StringComparison.OrdinalIgnoreCase))
|
private static string BrowserName(VehicleTexture texture) => Consist.Base(texture.Skinfile);
|
||||||
return texture.TextureMini!;
|
|
||||||
return Consist.Base(texture.Skinfile);
|
|
||||||
}
|
|
||||||
|
|
||||||
private string BrowserLabel(VehicleTexture texture, IReadOnlyList<VehicleTexture>? set)
|
private string BrowserLabel(VehicleTexture texture, IReadOnlyList<VehicleTexture>? set)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user