* WantedListCartridge has been added * WantedListCartridge user interface works * WantedListCartridge is added as standard in some PDAs * The CriminalRecordsSystem can now also take into account who created the record * Added offense history table * Fix of missing loaderUid for a cartridge without installing the program * Added personalized information about the target * The crime history has been finalized * Added StatusList * The officer's name has been added to the automatic history * WantedListCartridge has been added to the HOS locker * WantedListCartridge has been removed from brigmedic's preset programs * The StealConditionSystem now takes into account whether a cartridge is inserted or installed * Added target to thief on WantedListCartridge * Merge fix * Removing copypaste * Fix merge 2 * The sprite of WantedListCartridge has been changed * Update pda.yml * Fix scrollbar in the history table * Upstream localization fix * `StatusList` has been replaced by `ListContainer` with `TextureRect` * Margin fix
31 lines
770 B
C#
31 lines
770 B
C#
using Content.Client.UserInterface.Fragments;
|
|
using Content.Shared.CartridgeLoader.Cartridges;
|
|
using Robust.Client.UserInterface;
|
|
|
|
namespace Content.Client.CartridgeLoader.Cartridges;
|
|
|
|
public sealed partial class WantedListUi : UIFragment
|
|
{
|
|
private WantedListUiFragment? _fragment;
|
|
|
|
public override Control GetUIFragmentRoot()
|
|
{
|
|
return _fragment!;
|
|
}
|
|
|
|
public override void Setup(BoundUserInterface userInterface, EntityUid? fragmentOwner)
|
|
{
|
|
_fragment = new WantedListUiFragment();
|
|
}
|
|
|
|
public override void UpdateState(BoundUserInterfaceState state)
|
|
{
|
|
switch (state)
|
|
{
|
|
case WantedListUiState cast:
|
|
_fragment?.UpdateState(cast.Records);
|
|
break;
|
|
}
|
|
}
|
|
}
|