Fix crew manifest sorting (#13286)
This commit is contained in:
@@ -113,14 +113,6 @@ public sealed partial class CrewManifestUi : DefaultWindow
|
||||
Text = Loc.GetString(sectionTitle)
|
||||
});
|
||||
|
||||
entries.Sort((a, b) =>
|
||||
{
|
||||
var posA = crewManifestSystem.GetDepartmentOrder(sectionTitle, a.JobPrototype);
|
||||
var posB = crewManifestSystem.GetDepartmentOrder(sectionTitle, b.JobPrototype);
|
||||
|
||||
return posA.CompareTo(posB);
|
||||
});
|
||||
|
||||
var gridContainer = new GridContainer()
|
||||
{
|
||||
HorizontalExpand = true,
|
||||
@@ -147,7 +139,7 @@ public sealed partial class CrewManifestUi : DefaultWindow
|
||||
};
|
||||
|
||||
var title = new RichTextLabel();
|
||||
title.SetMessage(Loc.GetString(entry.JobTitle));
|
||||
title.SetMessage(entry.JobTitle);
|
||||
|
||||
|
||||
if (rsi != null)
|
||||
|
||||
@@ -116,7 +116,7 @@ public sealed class StationRecordsSystem : EntitySystem
|
||||
{
|
||||
Name = name,
|
||||
Age = age,
|
||||
JobTitle = jobPrototype.Name,
|
||||
JobTitle = jobPrototype.LocalizedName,
|
||||
JobIcon = jobPrototype.Icon,
|
||||
JobPrototype = jobId,
|
||||
Species = species,
|
||||
|
||||
Reference in New Issue
Block a user