fixed station records console item list selection (#20369)

This commit is contained in:
Artur
2023-09-22 22:57:05 +03:00
committed by GitHub
parent f6d07b6b2e
commit bd513e623c
2 changed files with 4 additions and 4 deletions

View File

@@ -24,9 +24,9 @@ public sealed class GeneralStationRecordConsoleBoundUserInterface : BoundUserInt
_window.OpenCentered();
}
private void OnKeySelected(StationRecordKey? key)
private void OnKeySelected((NetEntity, uint)? key)
{
SendMessage(new SelectGeneralStationRecord(EntMan.System<SharedStationRecordsSystem>().Convert(key)));
SendMessage(new SelectGeneralStationRecord(key));
}
private void OnFiltersChanged(

View File

@@ -11,7 +11,7 @@ namespace Content.Client.StationRecords;
[GenerateTypedNameReferences]
public sealed partial class GeneralStationRecordConsoleWindow : DefaultWindow
{
public Action<StationRecordKey?>? OnKeySelected;
public Action<(NetEntity, uint)?>? OnKeySelected;
public Action<GeneralStationRecordFilterType, string>? OnFiltersChanged;
@@ -32,7 +32,7 @@ public sealed partial class GeneralStationRecordConsoleWindow : DefaultWindow
RecordListing.OnItemSelected += args =>
{
if (_isPopulating || RecordListing[args.ItemIndex].Metadata is not StationRecordKey cast)
if (_isPopulating || RecordListing[args.ItemIndex].Metadata is not ValueTuple<NetEntity, uint> cast)
{
return;
}