More filters for station records (#37213)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -39,6 +39,8 @@ public sealed class SetStationRecordFilter : BoundUserInterfaceMessage
|
||||
public enum StationRecordFilterType : byte
|
||||
{
|
||||
Name,
|
||||
Job,
|
||||
Species,
|
||||
Prints,
|
||||
DNA,
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user