2021-01-08 10:29:08 -03:00
|
|
|
using Content.Client.Eui;
|
2021-06-09 22:19:39 +02:00
|
|
|
using Content.Shared.Administration;
|
2021-01-08 10:29:08 -03:00
|
|
|
using Content.Shared.Eui;
|
|
|
|
|
using JetBrains.Annotations;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Client.Administration.UI.SetOutfit
|
2021-01-08 10:29:08 -03:00
|
|
|
{
|
|
|
|
|
[UsedImplicitly]
|
|
|
|
|
public sealed class SetOutfitEui : BaseEui
|
|
|
|
|
{
|
|
|
|
|
private readonly SetOutfitMenu _window;
|
|
|
|
|
public SetOutfitEui()
|
|
|
|
|
{
|
|
|
|
|
_window = new SetOutfitMenu();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Opened()
|
|
|
|
|
{
|
|
|
|
|
_window.OpenCentered();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void Closed()
|
|
|
|
|
{
|
|
|
|
|
base.Closed();
|
|
|
|
|
_window.Close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override void HandleState(EuiStateBase state)
|
|
|
|
|
{
|
|
|
|
|
var outfitState = (SetOutfitEuiState) state;
|
|
|
|
|
_window.TargetEntityId = outfitState.TargetEntityId;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|