Inheritance: ItemProperties
示例#1
0
        public override void RecreateFromXml( LayerEditor parentLayer, XElement xml )
        {
            base.RecreateFromXml( parentLayer, xml );

            ParentLayer = parentLayer ;
            _properties = xml.CertainElement( @"LightProperties" ).DeserializedAs<LightProperties>( ) ;
        }
示例#2
0
 public LightEditor( )
 {
     _properties=new LightProperties(  );
     _drawing = ObjectFactory.GetInstance<IDrawing>( ) ;
 }
示例#3
0
        public override void CreateInDesignMode(LayerEditor parentLayer, IEntityCreationProperties creationProperties)
        {
            ParentLayer = parentLayer ;

            _properties= new LightProperties
                {
                    Visible=true,
                    IsOn = true,
                    Range=100f,
                    Color=Color.White,
                    FieldOfView = MathHelper.TwoPi,
                    Intensity = 1,
                    ShadowType = convertShadowType( ShadowType.Solid),
                    Position = MouseStatus.WorldPosition,
                    TextureSize = 128
                } ;
        }