Worn items use the spritecolor set in the sub editor. Closes #574
This commit is contained in:
@@ -194,10 +194,11 @@ namespace Barotrauma
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Color wearableColor = wearable.WearableComponent.Item.GetSpriteColor();
|
||||||
wearable.Sprite.Draw(spriteBatch,
|
wearable.Sprite.Draw(spriteBatch,
|
||||||
new Vector2(body.DrawPosition.X, -body.DrawPosition.Y),
|
new Vector2(body.DrawPosition.X, -body.DrawPosition.Y),
|
||||||
color, origin,
|
new Color((color.R * wearableColor.R) / 255.0f, (color.G * wearableColor.G) / 255.0f, (color.B * wearableColor.B) / 255.0f, (color.A * wearableColor.A) / 255.0f),
|
||||||
-body.DrawRotation,
|
origin, -body.DrawRotation,
|
||||||
Scale, spriteEffect, depth);
|
Scale, spriteEffect, depth);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user