]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
More filters for station records (#37213)
authorB_Kirill <153602297+B-Kirill@users.noreply.github.com>
Tue, 6 May 2025 16:21:16 +0000 (02:21 +1000)
committerGitHub <noreply@github.com>
Tue, 6 May 2025 16:21:16 +0000 (12:21 -0400)
Content.Server/StationRecords/Systems/StationRecordsSystem.cs
Content.Shared/StationRecords/StationRecordsFilter.cs
Resources/Locale/en-US/station-records/general-station-records.ftl

index 5957b98cd71d761535538506481e0776fc73a620..a3d0b4997065a7dfad1354211ba3fc078220d861 100644 (file)
@@ -393,6 +393,10 @@ public sealed class StationRecordsSystem : SharedStationRecordsSystem
         {
             StationRecordFilterType.Name =>
                 !someRecord.Name.ToLower().Contains(filterLowerCaseValue),
+            StationRecordFilterType.Job =>
+                !someRecord.JobTitle.ToLower().Contains(filterLowerCaseValue),
+            StationRecordFilterType.Species =>
+                !someRecord.Species.ToLower().Contains(filterLowerCaseValue),
             StationRecordFilterType.Prints => someRecord.Fingerprint != null
                 && IsFilterWithSomeCodeValue(someRecord.Fingerprint, filterLowerCaseValue),
             StationRecordFilterType.DNA => someRecord.DNA != null
index 10b94dda9983d3bdb55eaa14b34a9b6519c1b4a8..7a09eaa9855072d4e5de5415531de4b6ce6eada3 100644 (file)
@@ -39,6 +39,8 @@ public sealed class SetStationRecordFilter : BoundUserInterfaceMessage
 public enum StationRecordFilterType : byte
 {
     Name,
+    Job,
+    Species,
     Prints,
     DNA,
 }
index 4516a547f4d32fbd8485fc9a93c0723516a7bbc7..f5b70761e15bd4c325c1bb2a16f9327701992698 100644 (file)
@@ -12,6 +12,8 @@ general-station-record-console-record-dna = DNA: {$dna}
 
 general-station-record-for-filter-line-placeholder = Input text and press "Enter"
 general-station-record-name-filter = Name of person
+general-station-record-job-filter = Job
+general-station-record-species-filter = Species
 general-station-record-prints-filter = Fingerprints
 general-station-record-dna-filter = DNA
 general-station-record-console-search-records = Search