* Refactor SpeciesUI into overlay and status effects All components that update the UI will need to use PlayerAttached for cases where the Mind transfers I think. * Change overlay / status effects to use states * Change TryRemoveStatus to RemoveStatus Doesn't return a bool so not trying. Addressing PJB's feedback.
28 lines
801 B
C#
28 lines
801 B
C#
using Content.Client.Utility;
|
|
using Robust.Client.Graphics;
|
|
using Robust.Client.Interfaces.ResourceManagement;
|
|
using Robust.Client.UserInterface;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Shared.IoC;
|
|
|
|
namespace Content.Client.UserInterface
|
|
{
|
|
/// <summary>
|
|
/// The status effects display on the right side of the screen.
|
|
/// </summary>
|
|
public sealed class StatusEffectsUI : Control
|
|
{
|
|
public VBoxContainer VBox => _vBox;
|
|
private readonly VBoxContainer _vBox;
|
|
|
|
public StatusEffectsUI()
|
|
{
|
|
_vBox = new VBoxContainer {GrowHorizontal = GrowDirection.Begin};
|
|
AddChild(_vBox);
|
|
SetAnchorAndMarginPreset(LayoutPreset.TopRight);
|
|
MarginTop = 250;
|
|
MarginRight = 10;
|
|
}
|
|
}
|
|
}
|