Option to display lighting in sub editor

This commit is contained in:
Joonas Rikkonen
2018-01-09 12:27:42 +02:00
parent 55e96b315f
commit 6a3a4efba6
4 changed files with 44 additions and 15 deletions
@@ -28,6 +28,9 @@ namespace Barotrauma.Items.Components
set
{
range = MathHelper.Clamp(value, 0.0f, 2048.0f);
#if CLIENT
if (light != null) light.Range = range;
#endif
}
}
@@ -72,7 +75,13 @@ namespace Barotrauma.Items.Components
public Color LightColor
{
get { return lightColor; }
set { lightColor = value; }
set
{
lightColor = value;
#if CLIENT
if (light != null) light.Color = lightColor;
#endif
}
}
public override void Move(Vector2 amount)