fixed station records console item list selection (#20369)
This commit is contained in:
@@ -24,9 +24,9 @@ public sealed class GeneralStationRecordConsoleBoundUserInterface : BoundUserInt
|
|||||||
_window.OpenCentered();
|
_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(
|
private void OnFiltersChanged(
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace Content.Client.StationRecords;
|
|||||||
[GenerateTypedNameReferences]
|
[GenerateTypedNameReferences]
|
||||||
public sealed partial class GeneralStationRecordConsoleWindow : DefaultWindow
|
public sealed partial class GeneralStationRecordConsoleWindow : DefaultWindow
|
||||||
{
|
{
|
||||||
public Action<StationRecordKey?>? OnKeySelected;
|
public Action<(NetEntity, uint)?>? OnKeySelected;
|
||||||
|
|
||||||
public Action<GeneralStationRecordFilterType, string>? OnFiltersChanged;
|
public Action<GeneralStationRecordFilterType, string>? OnFiltersChanged;
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@ public sealed partial class GeneralStationRecordConsoleWindow : DefaultWindow
|
|||||||
|
|
||||||
RecordListing.OnItemSelected += args =>
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user