예제 #1
0
        public override void RegisterProperties(IPropertyController propertycontroller)
        {
            base.RegisterProperties(propertycontroller);

            propertycontroller.RegisterIntProperty("Hollow", primitive.Hollow, 0, 200, new SetIntPropertyHandler(SetHollow));
            propertycontroller.RegisterIntProperty("Twist", primitive.Twist, -360, 360, new SetIntPropertyHandler(SetTwist));
            propertycontroller.RegisterIntProperty("Shear", (int)(primitive.Shear * 100), -100, 100, new SetIntPropertyHandler(SetShear));
            propertycontroller.RegisterIntProperty("TopSize X", (int)(primitive.TopSizeX * 200), 0, 200, new SetIntPropertyHandler(SetTopSizeX));
            propertycontroller.RegisterIntProperty("TopSize Y", (int)(primitive.TopSizeY * 200), 0, 200, new SetIntPropertyHandler(SetTopSizeY));
            propertycontroller.RegisterIntProperty("Cut Begin", primitive.CutStart, 0, 200, new SetIntPropertyHandler(SetCutStart));
            propertycontroller.RegisterIntProperty("Cut End", primitive.CutEnd, 0, 200, new SetIntPropertyHandler(SetCutEnd));
            propertycontroller.RegisterIntProperty("Advanced Cut Start", primitive.AdvancedCutStart, 0, 200, new SetIntPropertyHandler(SetAdvancedCutStart));
            propertycontroller.RegisterIntProperty("Advanced Cut End", primitive.AdvancedCutEnd, 0, 200, new SetIntPropertyHandler(SetAdvancedCutEnd));

            propertycontroller.RegisterIntProperty("Texture Offset X", (int)(TextureOffsetX * 200), 0, 200, new SetIntPropertyHandler(SetTextureOffsetX));
            propertycontroller.RegisterIntProperty("Texture Offset Y", (int)(TextureOffsetY * 200), 0, 200, new SetIntPropertyHandler(SetTextureOffsetY));
            propertycontroller.RegisterIntProperty("Texture Scale X", (int)(TextureScaleX * 20), 0, 200, new SetIntPropertyHandler(SetTextureScaleX));
            propertycontroller.RegisterIntProperty("Texture Scale Y", (int)(TextureScaleY * 20), 0, 200, new SetIntPropertyHandler(SetTextureScaleY));
            propertycontroller.RegisterIntProperty("Texture Rotate", (int)(TextureRotate / 2), 0, 180, new SetIntPropertyHandler(SetTextureRotate));
        }
예제 #2
0
 public void RegisterProperties(IPropertyController propertycontroller)
 {
     propertycontroller.RegisterStringProperty("Name", name, 64, new SetStringPropertyHandler(SetName));
     propertycontroller.RegisterIntProperty("Hollow", hollow, 0, 200, new SetIntPropertyHandler(SetHollow));
 }
예제 #3
0
        public override void RegisterProperties( IPropertyController propertycontroller )
        {
            base.RegisterProperties( propertycontroller );

            propertycontroller.RegisterIntProperty( "Hollow", primitive.Hollow, 0, 200, new SetIntPropertyHandler( SetHollow ) );
            propertycontroller.RegisterIntProperty( "Twist", primitive.Twist, -360, 360, new SetIntPropertyHandler( SetTwist ) );
            propertycontroller.RegisterIntProperty( "Shear", (int)( primitive.Shear * 100 ), -100, 100, new SetIntPropertyHandler( SetShear ) );
            propertycontroller.RegisterIntProperty( "TopSize X", (int)(primitive.TopSizeX * 200 ), 0, 200, new SetIntPropertyHandler( SetTopSizeX ) );
            propertycontroller.RegisterIntProperty( "TopSize Y", (int)(primitive.TopSizeY * 200 ), 0, 200, new SetIntPropertyHandler( SetTopSizeY ) );
            propertycontroller.RegisterIntProperty( "Cut Begin", primitive.CutStart, 0, 200, new SetIntPropertyHandler( SetCutStart ) );
            propertycontroller.RegisterIntProperty( "Cut End", primitive.CutEnd, 0, 200, new SetIntPropertyHandler( SetCutEnd ) );
            propertycontroller.RegisterIntProperty( "Advanced Cut Start", primitive.AdvancedCutStart, 0, 200, new SetIntPropertyHandler( SetAdvancedCutStart ) );
            propertycontroller.RegisterIntProperty( "Advanced Cut End", primitive.AdvancedCutEnd, 0, 200, new SetIntPropertyHandler( SetAdvancedCutEnd ) );

            propertycontroller.RegisterIntProperty( "Texture Offset X", (int)( TextureOffsetX * 200 ), 0, 200, new SetIntPropertyHandler( SetTextureOffsetX ) );
            propertycontroller.RegisterIntProperty( "Texture Offset Y", (int)( TextureOffsetY * 200 ), 0, 200, new SetIntPropertyHandler( SetTextureOffsetY ) );
            propertycontroller.RegisterIntProperty( "Texture Scale X", (int)( TextureScaleX * 20 ), 0, 200, new SetIntPropertyHandler( SetTextureScaleX ) );
            propertycontroller.RegisterIntProperty( "Texture Scale Y", (int)( TextureScaleY * 20 ), 0, 200, new SetIntPropertyHandler( SetTextureScaleY ) );
            propertycontroller.RegisterIntProperty( "Texture Rotate", (int)( TextureRotate / 2 ), 0, 180, new SetIntPropertyHandler( SetTextureRotate ) );
        }