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