mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 16:47:26 +00:00
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
26 lines
596 B
C#
26 lines
596 B
C#
#nullable enable
|
|
using Content.Shared.GameObjects.Components.Mobs;
|
|
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, Texture? texture)
|
|
{
|
|
Effect = effect;
|
|
|
|
var item = new TextureRect
|
|
{
|
|
TextureScale = (2, 2),
|
|
Texture = texture
|
|
};
|
|
|
|
Children.Add(item);
|
|
}
|
|
}
|
|
}
|