* Add setoutfit command * Adds setoutfit as a verb and adds a proper UI to the command * Removes from AdminMenuWindow * Changes the SetOutfit verb to be a component verb instead of a global verb * Addresses reviews * Remove empty method * Remove on server aswell
43 lines
1009 B
C#
43 lines
1009 B
C#
using Content.Client.Eui;
|
|
using Content.Shared.Eui;
|
|
using JetBrains.Annotations;
|
|
using Robust.Client.UserInterface.CustomControls;
|
|
using Robust.Shared.IoC;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Content.Shared.Administration;
|
|
|
|
namespace Content.Client.UserInterface.AdminMenu.SetOutfit
|
|
{
|
|
[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;
|
|
|
|
}
|
|
}
|
|
}
|