Add job categories to the lobby screen (#2770)

* Rename department property to departments

* WIP Categories

* Add better spacing to categories

* Fix first separator and sync selectors

* You want some types with that

* Apply changes to latejoin as well

* Add category sorting to the late join gui as well

* CONTROL STUCK
This commit is contained in:
DrSmugleaf
2020-12-20 04:33:10 +01:00
committed by GitHub
parent 5909a41028
commit 0b24d425d2
24 changed files with 184 additions and 91 deletions

View File

@@ -42,7 +42,7 @@ namespace Content.Shared.Roles
public JobSpecial Special { get; private set; }
public IReadOnlyCollection<string> Department { get; private set; }
public IReadOnlyCollection<string> Departments { get; private set; }
public IReadOnlyCollection<string> Access { get; private set; }
public void LoadFrom(YamlMappingNode mapping)
@@ -51,7 +51,7 @@ namespace Content.Shared.Roles
ID = srz.ReadDataField<string>("id");
Name = Loc.GetString(srz.ReadDataField<string>("name"));
StartingGear = srz.ReadDataField<string>("startingGear");
Department = srz.ReadDataField<List<string>>("department");
Departments = srz.ReadDataField<List<string>>("departments");
TotalPositions = srz.ReadDataField<int>("positions");
srz.DataField(this, p => p.SpawnPositions, "spawnPositions", TotalPositions);