Files
LuaCsForBarotraumaEP/Barotrauma/BarotraumaServer/Source/Items/Components/ItemLabel.cs
Joonas Rikkonen 8e556f1c76 - Renamed a bunch of ObjectProperty-related stuff (ObjectProperty -> SerializableProperty, IPropertyObject -> ISerializableEntity, the "SerializableProperty" attribute -> Serialize).
- Rectangle serialization.
- Option to restrict numeric properties to a range of values.
- WIP generic ISerializableEntity editor.
2017-11-08 21:15:03 +02:00

40 lines
792 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)
{
}
}
}