- 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.
This commit is contained in:
@@ -132,7 +132,7 @@ namespace Barotrauma
|
||||
sp.size.Y = element.GetAttributeFloat("height", 0.0f);
|
||||
|
||||
string spriteColorStr = element.GetAttributeString("spritecolor", "1.0,1.0,1.0,1.0");
|
||||
sp.SpriteColor = new Color(XMLExtensions.ParseToVector4(spriteColorStr));
|
||||
sp.SpriteColor = new Color(XMLExtensions.ParseVector4(spriteColorStr));
|
||||
|
||||
sp.maxHealth = element.GetAttributeFloat("health", 100.0f);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user