fixed station records console item list selection (#20369)
This commit is contained in:
parent
882e2abeb0
commit
481b2c00c6
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue