public override void RecreateFromXml( LayerEditor parentLayer, XElement xml ) { ParentLayer = parentLayer ; base.RecreateFromXml( parentLayer, xml ); _properties = xml.CertainElement( @"CircularHullProperties" ).DeserializedAs<CircularHullProperties>( ) ; }
public CircularHullEditor( ) { _properties=new CircularHullProperties( ); }
public override void CreateInDesignMode(LayerEditor parentLayer, IEntityCreationProperties creationProperties) { ParentLayer = parentLayer ; _properties= new CircularHullProperties { Visible=true, Position = MouseStatus.WorldPosition, Radius = 10f, Scale = Vector2.One, Opacity = 1f, Sides = 10, FillColor = Color.Black } ; summonMainForm( ).SetToolStripStatusLabel1(Resource1.Circle_Started); }