Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaServer/Source/Items/Components/ItemLabel.cs
2019-03-18 20:39:27 +02:00

40 lines
784 B
C#

using Microsoft.Xna.Framework;
using System.Xml.Linq;
namespace Barotrauma.Items.Components
{
partial class ItemLabel : ItemComponent, IDrawableComponent
{
[Serialize("", true), Editable(100)]
public string Text
{
get;
set;
}
[Editable, Serialize("0.0,0.0,0.0,1.0", true)]
public Color TextColor
{
get;
set;
}
[Editable, Serialize(1.0f, true)]
public float TextScale
{
get;
set;
}
public override void Move(Vector2 amount)
{
//do nothing
}
public ItemLabel(Item item, XElement element)
: base(item, element)
{
}
}
}