2023-08-05 13:37:08 +05:00
|
|
|
|
using Content.Client.UserInterface.Fragments;
|
|
|
|
|
|
using Content.Shared.CartridgeLoader.Cartridges;
|
|
|
|
|
|
using Robust.Client.GameObjects;
|
|
|
|
|
|
using Robust.Client.UserInterface;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.CartridgeLoader.Cartridges;
|
|
|
|
|
|
|
2023-08-22 18:14:33 -07:00
|
|
|
|
public sealed partial class CrewManifestUi : UIFragment
|
2023-08-05 13:37:08 +05:00
|
|
|
|
{
|
|
|
|
|
|
private CrewManifestUiFragment? _fragment;
|
|
|
|
|
|
|
|
|
|
|
|
public override Control GetUIFragmentRoot()
|
|
|
|
|
|
{
|
|
|
|
|
|
return _fragment!;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void Setup(BoundUserInterface userInterface, EntityUid? fragmentOwner)
|
|
|
|
|
|
{
|
|
|
|
|
|
_fragment = new CrewManifestUiFragment();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public override void UpdateState(BoundUserInterfaceState state)
|
|
|
|
|
|
{
|
|
|
|
|
|
if (state is not CrewManifestUiState crewManifestState)
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
_fragment?.UpdateState(crewManifestState.StationName, crewManifestState.Entries);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|