Lights, colored items (only used for wires atm)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user