Lights, colored items (only used for wires atm)

This commit is contained in:
Regalis
2015-07-22 20:22:50 +03:00
parent 9a7eae8ace
commit 4820e55e05
51 changed files with 726 additions and 191 deletions
@@ -81,6 +81,8 @@ namespace Subsurface.Items.Components
handlePos[i - 1] = ConvertUnits.ToSimUnits(handlePos[i - 1]);
}
canBePicked = true;
//holdAngle = ToolBox.GetAttributeFloat(element, "holdangle", 0.0f);
//holdAngle = MathHelper.ToRadians(holdAngle);
}
@@ -160,6 +162,8 @@ namespace Subsurface.Items.Components
// return false;
//}
if (attached) return false;
item.body = body;
item.body.Enabled = true;
@@ -173,8 +173,8 @@ namespace Subsurface.Items.Components
//isActive = true;
}
public override void Draw(SpriteBatch spriteBatch)
public override void Draw(SpriteBatch spriteBatch, bool editing)
{
if (!isActive) return;