26 lines
619 B
C#
26 lines
619 B
C#
|
|
using Content.Shared.GameObjects.Components.Mobs;
|
|||
|
|
using JetBrains.Annotations;
|
|||
|
|
using Robust.Client.Graphics;
|
|||
|
|
using Robust.Client.UserInterface.Controls;
|
|||
|
|
|
|||
|
|
namespace Content.Client.GameObjects.Components.Mobs
|
|||
|
|
{
|
|||
|
|
public class StatusControl : BaseButton
|
|||
|
|
{
|
|||
|
|
public readonly StatusEffect Effect;
|
|||
|
|
|
|||
|
|
public StatusControl(StatusEffect effect, [CanBeNull] Texture texture)
|
|||
|
|
{
|
|||
|
|
Effect = effect;
|
|||
|
|
|
|||
|
|
var item = new TextureRect
|
|||
|
|
{
|
|||
|
|
TextureScale = (2, 2),
|
|||
|
|
Texture = texture
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
Children.Add(item);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|