public FalloffParameter()
 {
     ColorBlendType = new Value.Enum <BlendType>(BlendType.Add);
     BeginColor     = new Value.Color(0, 0, 0, 255);
     EndColor       = new Value.Color(255, 255, 255, 255);
     Pow            = new Value.Float(1, 100, 1);
 }
Esempio n. 2
0
        public OptionValues()
        {
            BackgroundColor = new Value.Color(0, 0, 0, 255);
            BackgroundImage = new Value.PathForImage("画像ファイル (*.png)|*.png", false, "");
            GridColor       = new Value.Color(255, 255, 255, 255);

            IsGridShown   = new Value.Boolean(true);
            IsXYGridShown = new Value.Boolean(false);
            IsXZGridShown = new Value.Boolean(true);
            IsYZGridShown = new Value.Boolean(false);

            GridLength        = new Value.Float(2, float.MaxValue, 0.1f);
            LightDirection    = new Value.Vector3D(1, 1, 1, 1, -1, 1, -1, 1, -1, 0.1f, 0.1f, 0.1f);
            LightColor        = new Value.Color(215, 215, 215, 255);
            LightAmbientColor = new Value.Color(40, 40, 40, 255);
            Magnification     = new Value.Float(1, float.MaxValue, 0.00001f);
            FPS        = new Value.Enum <FPSType>(FPSType._60FPS);
            Coordinate = new Value.Enum <CoordinateType>(CoordinateType.Right);

            ColorSpace = new Value.Enum <ColorSpaceType>(ColorSpaceType.GammaSpace);

            MouseRotInvX   = new Value.Boolean(false);
            MouseRotInvY   = new Value.Boolean(false);
            MouseSlideInvX = new Value.Boolean(false);
            MouseSlideInvY = new Value.Boolean(false);
        }
Esempio n. 3
0
        public static XmlElement SaveToElement(XmlDocument doc, string element_name, Value.Color value, bool isClip)
        {
            var e = doc.CreateElement(element_name);
            var r = SaveToElement(doc, "R", value.R, isClip);
            var g = SaveToElement(doc, "G", value.G, isClip);
            var b = SaveToElement(doc, "B", value.B, isClip);
            var a = SaveToElement(doc, "A", value.A, isClip);

            if (r != null)
            {
                e.AppendChild(r);
            }
            if (g != null)
            {
                e.AppendChild(g);
            }
            if (b != null)
            {
                e.AppendChild(b);
            }
            if (a != null)
            {
                e.AppendChild(a);
            }

            return(e.ChildNodes.Count > 0 ? e : null);
        }
Esempio n. 4
0
            public SpriteParamater(Path basepath)
            {
                RenderingOrder = new Value.Enum <Data.RenderingOrder>(Data.RenderingOrder.FirstCreatedInstanceIsFirst);

                Billboard  = new Value.Enum <BillboardType>(BillboardType.Billboard);
                AlphaBlend = new Value.Enum <AlphaBlendType>(AlphaBlendType.Blend);

                ColorAll        = new Value.Enum <StandardColorType>(StandardColorType.Fixed);
                ColorAll_Fixed  = new Value.Color(255, 255, 255, 255);
                ColorAll_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorAll_Easing = new ColorEasingParamater();
                ColorAll_FCurve = new ColorFCurveParameter();

                Color          = new Value.Enum <ColorType>(ColorType.Default);
                Color_Fixed_LL = new Value.Color(255, 255, 255, 255);
                Color_Fixed_LR = new Value.Color(255, 255, 255, 255);
                Color_Fixed_UL = new Value.Color(255, 255, 255, 255);
                Color_Fixed_UR = new Value.Color(255, 255, 255, 255);


                Position          = new Value.Enum <PositionType>(PositionType.Default);
                Position_Fixed_LL = new Value.Vector2D(-0.5f, -0.5f);
                Position_Fixed_LR = new Value.Vector2D(0.5f, -0.5f);
                Position_Fixed_UL = new Value.Vector2D(-0.5f, 0.5f);
                Position_Fixed_UR = new Value.Vector2D(0.5f, 0.5f);
                ColorTexture      = new Value.Path(basepath, "", true, "");
            }
Esempio n. 5
0
        public EffectBehaviorValues()
        {
            Location = new Value.Vector3D();
            Rotation = new Value.Vector3D();
            Scale    = new Value.Vector3D(1.0f, 1.0f, 1.0f);

            LocationVelocity = new Value.Vector3D();
            RotationVelocity = new Value.Vector3D();
            ScaleVelocity    = new Value.Vector3D();

            RemovedTime = new Value.IntWithInifinite(0, true, int.MaxValue, 0);

            CountX = new Value.Int(1, int.MaxValue, 1);
            CountY = new Value.Int(1, int.MaxValue, 1);
            CountZ = new Value.Int(1, int.MaxValue, 1);

            Distance = new Value.Float(5.0f, float.MaxValue, 0.0f);

            TimeSpan = new Value.Int(0);
            ColorAll = new Value.Color(255, 255, 255, 255);

            TargetLocation = new Value.Vector3D();

            PlaybackSpeed = new Value.Float(1.0f, float.MaxValue, 0.0f, 0.1f);
        }
Esempio n. 6
0
            public RibbonParamater()
            {
                AlphaBlend         = new Value.Enum <AlphaBlendType>(AlphaBlendType.Blend);
                ViewpointDependent = new Value.Boolean(false);
                ColorAll           = new Value.Enum <ColorAllType>(ColorAllType.Fixed);
                ColorAll_Fixed     = new Value.Color(255, 255, 255, 255);
                ColorAll_Random    = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorAll_Easing    = new ColorEasingParamater();

                Color         = new Value.Enum <ColorType>(ColorType.Default);
                Color_Fixed_L = new Value.Color(255, 255, 255, 255);
                Color_Fixed_R = new Value.Color(255, 255, 255, 255);

                Position         = new Value.Enum <PositionType>(PositionType.Default);
                Position_Fixed_L = new Value.Float(-0.5f);
                Position_Fixed_R = new Value.Float(0.5f);

                if (Core.Language == Language.Japanese)
                {
                    ColorTexture = new Value.Path("画像ファイル (*.png)|*.png", true, "");
                }
                else if (Core.Language == Language.English)
                {
                    ColorTexture = new Value.Path("Image File (*.png)|*.png", true, "");
                }
            }
Esempio n. 7
0
        public OptionValues()
        {
            BackgroundColor = new Value.Color(0, 0, 0, 255);
            BackgroundImage = new Value.PathForImage("画像ファイル (*.png)|*.png", false, "");
            GridColor = new Value.Color(255, 255, 255, 255);

            IsGridShown = new Value.Boolean(true);
            IsXYGridShown = new Value.Boolean(false);
            IsXZGridShown = new Value.Boolean(true);
            IsYZGridShown = new Value.Boolean(false);

            GridLength = new Value.Float(2, float.MaxValue, 0.1f);
            LightDirection = new Value.Vector3D(1, 1, 1, 1, -1, 1, -1, 1, -1, 0.1f, 0.1f, 0.1f);
            LightColor = new Value.Color(215, 215, 215, 255);
            LightAmbientColor = new Value.Color(40, 40, 40, 255);
            Magnification = new Value.Float(1, float.MaxValue, 0.00001f);
            FPS = new Value.Enum<FPSType>(FPSType._60FPS);
            Coordinate = new Value.Enum<CoordinateType>(CoordinateType.Right);

            ColorSpace = new Value.Enum<ColorSpaceType>(ColorSpaceType.GammaSpace);

            MouseRotInvX = new Value.Boolean(false);
            MouseRotInvY = new Value.Boolean(false);
            MouseSlideInvX = new Value.Boolean(false);
            MouseSlideInvY = new Value.Boolean(false);

            GuiLanguage = new Value.Enum<Language>(Core.Language);
        }
Esempio n. 8
0
        public OptionValues()
        {
            RenderingMode = new Value.Enum <RenderMode>(RenderMode.Normal);
            GridColor     = new Value.Color(255, 255, 255, 255);

            IsGridShown   = new Value.Boolean(true);
            IsXYGridShown = new Value.Boolean(false);
            IsXZGridShown = new Value.Boolean(true);
            IsYZGridShown = new Value.Boolean(false);

            GridLength = new Value.Float(2, float.MaxValue, 0.1f);

            Magnification         = new Value.Float(1, float.MaxValue, 0.00001f);
            ExternalMagnification = new Value.Float(1, float.MaxValue, 0.00001f);
            FPS        = new Value.Enum <FPSType>(FPSType._60FPS);
            Coordinate = new Value.Enum <CoordinateType>(CoordinateType.Right);

            ColorSpace = new Value.Enum <ColorSpaceType>(ColorSpaceType.GammaSpace);

            MouseRotInvX   = new Value.Boolean(false);
            MouseRotInvY   = new Value.Boolean(false);
            MouseSlideInvX = new Value.Boolean(false);
            MouseSlideInvY = new Value.Boolean(false);

            DistortionType = new Value.Enum <DistortionMethodType>(DistortionMethodType.Current);

            Font     = new Value.Enum <FontType>(FontType.Normal);
            FontSize = new Value.Int(16, 32, 8);

            // Switch the language according to the OS settings
            GuiLanguage = new Value.Enum <Language>(LanguageGetter.GetLanguage());
        }
Esempio n. 9
0
        public OptionValues()
        {
            RenderingMode = new Value.Enum <RenderMode>(RenderMode.Normal);
            ViewerMode    = new Value.Enum <ViewMode>(ViewMode._3D);
            GridColor     = new Value.Color(255, 255, 255, 255);

            IsGridShown   = new Value.Boolean(true);
            IsXYGridShown = new Value.Boolean(false);
            IsXZGridShown = new Value.Boolean(true);
            IsYZGridShown = new Value.Boolean(false);

            GridLength = new Value.Float(2, float.MaxValue, 0.1f);

            Magnification         = new Value.Float(1, float.MaxValue, 0.00001f);
            ExternalMagnification = new Value.Float(1, float.MaxValue, 0.00001f);
            FPS        = new Value.Enum <FPSType>(FPSType._60FPS);
            Coordinate = new Value.Enum <CoordinateType>(CoordinateType.Right);

            ColorSpace = new Value.Enum <ColorSpaceType>(ColorSpaceType.GammaSpace);

            MouseRotInvX   = new Value.Boolean(false);
            MouseRotInvY   = new Value.Boolean(false);
            MouseSlideInvX = new Value.Boolean(false);
            MouseSlideInvY = new Value.Boolean(false);

            DistortionType = new Value.Enum <DistortionMethodType>(DistortionMethodType.Current);

            Font     = new Value.Enum <FontType>(FontType.Normal);
            FontSize = new Value.Int(16, 32, 8);

            LanguageSelector = new LanguageSelector();
        }
Esempio n. 10
0
            public RingParamater()
            {
                RenderingOrder = new Value.Enum <Data.RenderingOrder>(Data.RenderingOrder.FirstCreatedInstanceIsFirst);

                Billboard  = new Value.Enum <BillboardType>(BillboardType.Fixed);
                AlphaBlend = new Value.Enum <AlphaBlendType>(AlphaBlendType.Blend);

                VertexCount = new Value.Int(16, 256, 3);

                ViewingAngle        = new Value.Enum <ViewingAngleType>(ViewingAngleType.Fixed);
                ViewingAngle_Fixed  = new Value.Float(360.0f, 360.0f, 0.0f);
                ViewingAngle_Random = new Value.FloatWithRandom(360.0f, 360.0f, 0.0f);
                ViewingAngle_Easing = new FloatEasingParamater(360.0f, 360.0f, 0.0f);

                Outer        = new Value.Enum <LocationType>(LocationType.Fixed);
                Outer_Fixed  = new FixedLocation(2.0f, 0.0f);
                Outer_PVA    = new PVALocation(2.0f, 0.0f);
                Outer_Easing = new Vector2DEasingParamater();

                Inner        = new Value.Enum <LocationType>(LocationType.Fixed);
                Inner_Fixed  = new FixedLocation(1.0f, 0.0f);
                Inner_PVA    = new PVALocation(1.0f, 0.0f);
                Inner_Easing = new Vector2DEasingParamater();

                CenterRatio        = new Value.Enum <CenterRatioType>(CenterRatioType.Fixed);
                CenterRatio_Fixed  = new Value.Float(0.5f, 1.0f, 0.0f);
                CenterRatio_Random = new Value.FloatWithRandom(0.5f, 1.0f, 0.0f);
                CenterRatio_Easing = new FloatEasingParamater(0.5f, 1.0f, 0.0f);

                OuterColor        = new Value.Enum <ColorType>(ColorType.Fixed);
                OuterColor_Fixed  = new Value.Color(255, 255, 255, 0);
                OuterColor_Random = new Value.ColorWithRandom(255, 255, 255, 0);
                OuterColor_Easing = new ColorEasingParamater();

                CenterColor        = new Value.Enum <ColorType>(ColorType.Fixed);
                CenterColor_Fixed  = new Value.Color(255, 255, 255, 255);
                CenterColor_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                CenterColor_Easing = new ColorEasingParamater();

                InnerColor        = new Value.Enum <ColorType>(ColorType.Fixed);
                InnerColor_Fixed  = new Value.Color(255, 255, 255, 0);
                InnerColor_Random = new Value.ColorWithRandom(255, 255, 255, 0);
                InnerColor_Easing = new ColorEasingParamater();

                if (Core.Language == Language.Japanese)
                {
                    ColorTexture = new Value.Path("画像ファイル (*.png)|*.png", true, "");
                }
                else if (Core.Language == Language.English)
                {
                    ColorTexture = new Value.Path("Image File (*.png)|*.png", true, "");
                }
            }
Esempio n. 11
0
            public ModelParamater()
            {
                Model         = new Value.Path("モデルファイル (*.efkmodel)|*.efkmodel", true, "");
                NormalTexture = new Value.PathForImage("画像ファイル (*.png)|*.png", true, "");
                Lighting      = new Value.Boolean(true);
                Culling       = new Value.Enum <CullingValues>(Data.CullingValues.Front);

                Color        = new Value.Enum <StandardColorType>(StandardColorType.Fixed);
                Color_Fixed  = new Value.Color(255, 255, 255, 255);
                Color_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                Color_Easing = new ColorEasingParamater();
                Color_FCurve = new ColorFCurveParameter();
            }
Esempio n. 12
0
            public ModelParamater(Value.Path basepath)
            {
                Model = new Value.PathForModel(basepath, Resources.GetString("ModelFilter"), true, "");

                Billboard = new Value.Enum <BillboardType>(BillboardType.Fixed);

                Culling = new Value.Enum <CullingValues>(Data.CullingValues.Front);

                Color        = new Value.Enum <StandardColorType>(StandardColorType.Fixed);
                Color_Fixed  = new Value.Color(255, 255, 255, 255);
                Color_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                Color_Easing = new ColorEasingParamater();
                Color_FCurve = new ColorFCurveParameter();
            }
Esempio n. 13
0
            public ModelParamater()
            {
                Model         = new Value.PathForModel(Properties.Resources.ModelFilter, true, "");
                NormalTexture = new Value.PathForImage(Properties.Resources.ImageFilter, true, "");

                Lighting = new Value.Boolean(true);
                Culling  = new Value.Enum <CullingValues>(Data.CullingValues.Front);

                Color        = new Value.Enum <StandardColorType>(StandardColorType.Fixed);
                Color_Fixed  = new Value.Color(255, 255, 255, 255);
                Color_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                Color_Easing = new ColorEasingParamater();
                Color_FCurve = new ColorFCurveParameter();
            }
Esempio n. 14
0
            public TrackParameter(Path basepath)
            {
                TrackSizeFor       = new Value.Enum <TrackSizeType>(TrackSizeType.Fixed);
                TrackSizeFor_Fixed = new Value.Float(1, float.MaxValue, 0);

                TrackSizeMiddle       = new Value.Enum <TrackSizeType>(TrackSizeType.Fixed);
                TrackSizeMiddle_Fixed = new Value.Float(1, float.MaxValue, 0);

                TrackSizeBack       = new Value.Enum <TrackSizeType>(TrackSizeType.Fixed);
                TrackSizeBack_Fixed = new Value.Float(1, float.MaxValue, 0);

                ColorLeft        = new Value.Enum <StandardColorType>(StandardColorType.Fixed);
                ColorLeft_Fixed  = new Value.Color(255, 255, 255, 255);
                ColorLeft_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorLeft_Easing = new ColorEasingParamater();
                ColorLeft_FCurve = new ColorFCurveParameter();

                ColorLeftMiddle        = new Value.Enum <StandardColorType>(StandardColorType.Fixed);
                ColorLeftMiddle_Fixed  = new Value.Color(255, 255, 255, 255);
                ColorLeftMiddle_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorLeftMiddle_Easing = new ColorEasingParamater();
                ColorLeftMiddle_FCurve = new ColorFCurveParameter();

                ColorCenter        = new Value.Enum <StandardColorType>(StandardColorType.Fixed);
                ColorCenter_Fixed  = new Value.Color(255, 255, 255, 255);
                ColorCenter_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorCenter_Easing = new ColorEasingParamater();
                ColorCenter_FCurve = new ColorFCurveParameter();

                ColorCenterMiddle        = new Value.Enum <StandardColorType>(StandardColorType.Fixed);
                ColorCenterMiddle_Fixed  = new Value.Color(255, 255, 255, 255);
                ColorCenterMiddle_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorCenterMiddle_Easing = new ColorEasingParamater();
                ColorCenterMiddle_FCurve = new ColorFCurveParameter();

                ColorRight        = new Value.Enum <StandardColorType>(StandardColorType.Fixed);
                ColorRight_Fixed  = new Value.Color(255, 255, 255, 255);
                ColorRight_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorRight_Easing = new ColorEasingParamater();
                ColorRight_FCurve = new ColorFCurveParameter();

                ColorRightMiddle        = new Value.Enum <StandardColorType>(StandardColorType.Fixed);
                ColorRightMiddle_Fixed  = new Value.Color(255, 255, 255, 255);
                ColorRightMiddle_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorRightMiddle_Easing = new ColorEasingParamater();
                ColorRightMiddle_FCurve = new ColorFCurveParameter();

                SplineDivision = new Value.Int(1, int.MaxValue, 1);
            }
Esempio n. 15
0
            public RingParamater(Path basepath)
            {
                RingShape      = new RingShapeParameter();
                RenderingOrder = new Value.Enum <Data.RenderingOrder>(Data.RenderingOrder.FirstCreatedInstanceIsFirst);

                Billboard  = new Value.Enum <BillboardType>(BillboardType.Fixed);
                AlphaBlend = new Value.Enum <AlphaBlendType>(AlphaBlendType.Blend);

                VertexCount = new Value.Int(16, 256, 3);

                /// for compatibility
                ViewingAngle        = new Value.Enum <ViewingAngleType>(ViewingAngleType.Fixed);
                ViewingAngle_Fixed  = new Value.Float(360.0f, 360.0f, 0.0f);
                ViewingAngle_Random = new Value.FloatWithRandom(360.0f, 360.0f, 0.0f);
                ViewingAngle_Easing = new FloatEasingParamater(360.0f, 360.0f, 0.0f);


                Outer        = new Value.Enum <LocationType>(LocationType.Fixed);
                Outer_Fixed  = new FixedLocation(2.0f, 0.0f);
                Outer_PVA    = new PVALocation(2.0f, 0.0f);
                Outer_Easing = new Vector2DEasingParamater();

                Inner        = new Value.Enum <LocationType>(LocationType.Fixed);
                Inner_Fixed  = new FixedLocation(1.0f, 0.0f);
                Inner_PVA    = new PVALocation(1.0f, 0.0f);
                Inner_Easing = new Vector2DEasingParamater();

                CenterRatio        = new Value.Enum <CenterRatioType>(CenterRatioType.Fixed);
                CenterRatio_Fixed  = new Value.Float(0.5f, 1.0f, 0.0f);
                CenterRatio_Random = new Value.FloatWithRandom(0.5f, 1.0f, 0.0f);
                CenterRatio_Easing = new FloatEasingParamater(0.5f, 1.0f, 0.0f);

                OuterColor        = new Value.Enum <ColorType>(ColorType.Fixed);
                OuterColor_Fixed  = new Value.Color(255, 255, 255, 0);
                OuterColor_Random = new Value.ColorWithRandom(255, 255, 255, 0);
                OuterColor_Easing = new ColorEasingParamater();

                CenterColor        = new Value.Enum <ColorType>(ColorType.Fixed);
                CenterColor_Fixed  = new Value.Color(255, 255, 255, 255);
                CenterColor_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                CenterColor_Easing = new ColorEasingParamater();

                InnerColor        = new Value.Enum <ColorType>(ColorType.Fixed);
                InnerColor_Fixed  = new Value.Color(255, 255, 255, 0);
                InnerColor_Random = new Value.ColorWithRandom(255, 255, 255, 0);
                InnerColor_Easing = new ColorEasingParamater();

                ColorTexture = new Value.Path(basepath, Resources.GetString("ImageFilter"), true, "");
            }
Esempio n. 16
0
            public RibbonParamater()
            {
                AlphaBlend         = new Value.Enum <AlphaBlendType>(AlphaBlendType.Blend);
                ViewpointDependent = new Value.Boolean(false);
                ColorAll           = new Value.Enum <ColorAllType>(ColorAllType.Fixed);
                ColorAll_Fixed     = new Value.Color(255, 255, 255, 255);
                ColorAll_Random    = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorAll_Easing    = new ColorEasingParamater();

                Color         = new Value.Enum <ColorType>(ColorType.Default);
                Color_Fixed_L = new Value.Color(255, 255, 255, 255);
                Color_Fixed_R = new Value.Color(255, 255, 255, 255);

                Position         = new Value.Enum <PositionType>(PositionType.Default);
                Position_Fixed_L = new Value.Float(-0.5f);
                Position_Fixed_R = new Value.Float(0.5f);

                ColorTexture = new Value.Path(Properties.Resources.ImageFilter, true, "");
            }
Esempio n. 17
0
        public OptionValues()
        {
            RenderingMode       = new Value.Enum <RenderMode>(RenderMode.Normal);
            BackgroundColor     = new Value.Color(0, 0, 0, 255);
            LasyBackgroundImage = new Lazy <Value.PathForImage>(() => { return(new Value.PathForImage(Properties.Resources.ImageFilter, false, "")); });
            GridColor           = new Value.Color(255, 255, 255, 255);

            IsGridShown   = new Value.Boolean(true);
            IsXYGridShown = new Value.Boolean(false);
            IsXZGridShown = new Value.Boolean(true);
            IsYZGridShown = new Value.Boolean(false);

            GridLength            = new Value.Float(2, float.MaxValue, 0.1f);
            LightDirection        = new Value.Vector3D(1, 1, 1, 1, -1, 1, -1, 1, -1, 0.1f, 0.1f, 0.1f);
            LightColor            = new Value.Color(215, 215, 215, 255);
            LightAmbientColor     = new Value.Color(40, 40, 40, 255);
            Magnification         = new Value.Float(1, float.MaxValue, 0.00001f);
            ExternalMagnification = new Value.Float(1, float.MaxValue, 0.00001f);
            FPS        = new Value.Enum <FPSType>(FPSType._60FPS);
            Coordinate = new Value.Enum <CoordinateType>(CoordinateType.Right);

            ColorSpace = new Value.Enum <ColorSpaceType>(ColorSpaceType.GammaSpace);

            MouseRotInvX   = new Value.Boolean(false);
            MouseRotInvY   = new Value.Boolean(false);
            MouseSlideInvX = new Value.Boolean(false);
            MouseSlideInvY = new Value.Boolean(false);

            DistortionType = new Value.Enum <DistortionMethodType>(DistortionMethodType.Current);

            // Switch the language according to the OS settings
            var culture = System.Globalization.CultureInfo.CurrentCulture;

            if (culture.Name == "ja-JP")
            {
                GuiLanguage = new Value.Enum <Language>(Language.Japanese);
            }
            else
            {
                GuiLanguage = new Value.Enum <Language>(Language.English);
            }
        }
Esempio n. 18
0
            public RibbonParamater(Path basepath)
            {
                AlphaBlend         = new Value.Enum <AlphaBlendType>(AlphaBlendType.Blend);
                ViewpointDependent = new Value.Boolean(false);
                ColorAll           = new Value.Enum <ColorAllType>(ColorAllType.Fixed);
                ColorAll_Fixed     = new Value.Color(255, 255, 255, 255);
                ColorAll_Random    = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorAll_Easing    = new ColorEasingParamater();

                Color         = new Value.Enum <ColorType>(ColorType.Default);
                Color_Fixed_L = new Value.Color(255, 255, 255, 255);
                Color_Fixed_R = new Value.Color(255, 255, 255, 255);

                Position         = new Value.Enum <PositionType>(PositionType.Default);
                Position_Fixed_L = new Value.Float(-0.5f);
                Position_Fixed_R = new Value.Float(0.5f);

                SplineDivision = new Value.Int(1, int.MaxValue, 1);

                ColorTexture = new Value.Path(basepath, Resources.GetString("ImageFilter"), true, "");
            }
Esempio n. 19
0
        public OptionValues()
        {
            RenderingMode = new Value.Enum <RenderMode>(RenderMode.Normal);
            ViewerMode    = new Value.Enum <ViewMode>(ViewMode._3D);
            GridColor     = new Value.Color(255, 255, 255, 255);

            IsGridShown   = new Value.Boolean(true);
            IsXYGridShown = new Value.Boolean(false);
            IsXZGridShown = new Value.Boolean(true);
            IsYZGridShown = new Value.Boolean(false);

            GridLength = new Value.Float(2, float.MaxValue, 0.1f);

            Magnification         = new Value.Float(1, float.MaxValue, 0.00001f);
            ExternalMagnification = new Value.Float(1, float.MaxValue, 0.00001f);
            FPS        = new Value.Enum <FPSType>(FPSType._60FPS);
            Coordinate = new Value.Enum <CoordinateType>(CoordinateType.Right);

            ColorSpace = new Value.Enum <ColorSpaceType>(ColorSpaceType.GammaSpace);

            MouseRotInvX   = new Value.Boolean(false);
            MouseRotInvY   = new Value.Boolean(false);
            MouseSlideInvX = new Value.Boolean(false);
            MouseSlideInvY = new Value.Boolean(false);

            DistortionType = new Value.Enum <DistortionMethodType>(DistortionMethodType.Current);

            Font     = new Value.Enum <FontType>(FontType.Normal);
            FontSize = new Value.Int(16, 32, 8);

            MouseMappingType = new Value.Enum <MouseMappingType>(Data.MouseMappingType.Effekseer);

            LanguageSelector = new LanguageSelector();

            FileViewerViewMode  = new Value.Enum <FileViewMode>(FileViewMode.IconView);
            FileViewerIconSize  = new Value.Int(96, 512, 48);
            FloatFormatDigits   = new Value.Int(3, 9, 1);
            AutoSaveIntervalMin = new Value.Int(2, 60, 0);
        }
Esempio n. 20
0
        public static void LoadFromElement(XmlElement e, Value.Color value, bool isClip)
        {
            var e_r = e["R"] as XmlElement;
            var e_g = e["G"] as XmlElement;
            var e_b = e["B"] as XmlElement;
            var e_a = e["A"] as XmlElement;

            if (e_r != null)
            {
                LoadFromElement(e_r, value.R, isClip);
            }
            if (e_g != null)
            {
                LoadFromElement(e_g, value.G, isClip);
            }
            if (e_b != null)
            {
                LoadFromElement(e_b, value.B, isClip);
            }
            if (e_a != null)
            {
                LoadFromElement(e_a, value.A, isClip);
            }
        }
Esempio n. 21
0
            public RingParamater()
            {
                RenderingOrder = new Value.Enum<Data.RenderingOrder>(Data.RenderingOrder.FirstCreatedInstanceIsFirst);

                Billboard = new Value.Enum<BillboardType>(BillboardType.Fixed);
                AlphaBlend = new Value.Enum<AlphaBlendType>(AlphaBlendType.Blend);

                VertexCount = new Value.Int(16, 256, 3);

                ViewingAngle = new Value.Enum<ViewingAngleType>(ViewingAngleType.Fixed);
                ViewingAngle_Fixed = new Value.Float(360.0f, 360.0f, 0.0f);
                ViewingAngle_Random = new Value.FloatWithRandom(360.0f, 360.0f, 0.0f);
                ViewingAngle_Easing = new FloatEasingParamater(360.0f, 360.0f, 0.0f);

                Outer = new Value.Enum<LocationType>(LocationType.Fixed);
                Outer_Fixed = new FixedLocation(2.0f, 0.0f);
                Outer_PVA = new PVALocation(2.0f, 0.0f);
                Outer_Easing = new Vector2DEasingParamater();

                Inner = new Value.Enum<LocationType>(LocationType.Fixed);
                Inner_Fixed = new FixedLocation(1.0f, 0.0f);
                Inner_PVA = new PVALocation(1.0f, 0.0f);
                Inner_Easing = new Vector2DEasingParamater();

                CenterRatio = new Value.Enum<CenterRatioType>(CenterRatioType.Fixed);
                CenterRatio_Fixed = new Value.Float(0.5f, 1.0f, 0.0f);
                CenterRatio_Random = new Value.FloatWithRandom(0.5f, 1.0f, 0.0f);
                CenterRatio_Easing = new FloatEasingParamater(0.5f, 1.0f, 0.0f);

                OuterColor = new Value.Enum<ColorType>(ColorType.Fixed);
                OuterColor_Fixed = new Value.Color(255, 255, 255, 0);
                OuterColor_Random = new Value.ColorWithRandom(255, 255, 255, 0);
                OuterColor_Easing = new ColorEasingParamater();

                CenterColor = new Value.Enum<ColorType>(ColorType.Fixed);
                CenterColor_Fixed = new Value.Color(255, 255, 255, 255);
                CenterColor_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                CenterColor_Easing = new ColorEasingParamater();

                InnerColor = new Value.Enum<ColorType>(ColorType.Fixed);
                InnerColor_Fixed = new Value.Color(255, 255, 255, 0);
                InnerColor_Random = new Value.ColorWithRandom(255, 255, 255, 0);
                InnerColor_Easing = new ColorEasingParamater();

                if (Core.Language == Language.Japanese)
                {
                    ColorTexture = new Value.Path("画像ファイル (*.png)|*.png", true, "");
                }
                else if (Core.Language == Language.English)
                {
                    ColorTexture = new Value.Path("Image File (*.png)|*.png", true, "");
                }
            }
Esempio n. 22
0
 public EnvironmentBackgroundValues()
 {
     BackgroundColor = new Value.Color(0, 0, 0, 255);
 }
Esempio n. 23
0
 public EnvironmentLightingValues()
 {
     LightDirection    = new Value.Vector3D(1, 1, 1, 1, -1, 1, -1, 1, -1, 0.1f, 0.1f, 0.1f);
     LightColor        = new Value.Color(215, 215, 215, 255);
     LightAmbientColor = new Value.Color(40, 40, 40, 255);
 }
Esempio n. 24
0
            public ModelParamater()
            {
                if (Core.Language == Language.Japanese)
                {
                    Model = new Value.Path("モデルファイル (*.efkmodel)|*.efkmodel", true, "");
                    NormalTexture = new Value.PathForImage("画像ファイル (*.png)|*.png", true, "");
                }
                else if (Core.Language == Language.English)
                {
                    Model = new Value.Path("Model File (*.efkmodel)|*.efkmodel", true, "");
                    NormalTexture = new Value.PathForImage("Image File (*.png)|*.png", true, "");
                }

                Lighting = new Value.Boolean(true);
                Culling = new Value.Enum<CullingValues>(Data.CullingValues.Front);

                Color = new Value.Enum<StandardColorType>(StandardColorType.Fixed);
                Color_Fixed = new Value.Color(255, 255, 255, 255);
                Color_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                Color_Easing = new ColorEasingParamater();
                Color_FCurve = new ColorFCurveParameter();
            }
Esempio n. 25
0
            public TrackParameter()
            {
                TrackSizeFor = new Value.Enum<TrackSizeType>(TrackSizeType.Fixed);
                TrackSizeFor_Fixed = new Value.Float(1, float.MaxValue, 0);

                TrackSizeMiddle = new Value.Enum<TrackSizeType>(TrackSizeType.Fixed);
                TrackSizeMiddle_Fixed = new Value.Float(1, float.MaxValue, 0);

                TrackSizeBack = new Value.Enum<TrackSizeType>(TrackSizeType.Fixed);
                TrackSizeBack_Fixed = new Value.Float(1, float.MaxValue, 0);

                ColorLeft = new Value.Enum<StandardColorType>(StandardColorType.Fixed);
                ColorLeft_Fixed = new Value.Color(255, 255, 255, 255);
                ColorLeft_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorLeft_Easing = new ColorEasingParamater();
                ColorLeft_FCurve = new ColorFCurveParameter();

                ColorLeftMiddle = new Value.Enum<StandardColorType>(StandardColorType.Fixed);
                ColorLeftMiddle_Fixed = new Value.Color(255, 255, 255, 255);
                ColorLeftMiddle_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorLeftMiddle_Easing = new ColorEasingParamater();
                ColorLeftMiddle_FCurve = new ColorFCurveParameter();

                ColorCenter = new Value.Enum<StandardColorType>(StandardColorType.Fixed);
                ColorCenter_Fixed = new Value.Color(255, 255, 255, 255);
                ColorCenter_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorCenter_Easing = new ColorEasingParamater();
                ColorCenter_FCurve = new ColorFCurveParameter();

                ColorCenterMiddle = new Value.Enum<StandardColorType>(StandardColorType.Fixed);
                ColorCenterMiddle_Fixed = new Value.Color(255, 255, 255, 255);
                ColorCenterMiddle_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorCenterMiddle_Easing = new ColorEasingParamater();
                ColorCenterMiddle_FCurve = new ColorFCurveParameter();

                ColorRight = new Value.Enum<StandardColorType>(StandardColorType.Fixed);
                ColorRight_Fixed = new Value.Color(255, 255, 255, 255);
                ColorRight_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorRight_Easing = new ColorEasingParamater();
                ColorRight_FCurve = new ColorFCurveParameter();

                ColorRightMiddle = new Value.Enum<StandardColorType>(StandardColorType.Fixed);
                ColorRightMiddle_Fixed = new Value.Color(255, 255, 255, 255);
                ColorRightMiddle_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorRightMiddle_Easing = new ColorEasingParamater();
                ColorRightMiddle_FCurve = new ColorFCurveParameter();
            }
Esempio n. 26
0
            public ModelParamater()
            {
                Model = new Value.Path(Properties.Resources.ModelFilter, true, "");
                NormalTexture = new Value.PathForImage(Properties.Resources.ImageFilter, true, "");

                Lighting = new Value.Boolean(true);
                Culling = new Value.Enum<CullingValues>(Data.CullingValues.Front);

                Color = new Value.Enum<StandardColorType>(StandardColorType.Fixed);
                Color_Fixed = new Value.Color(255, 255, 255, 255);
                Color_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                Color_Easing = new ColorEasingParamater();
                Color_FCurve = new ColorFCurveParameter();
            }
Esempio n. 27
0
            public RibbonParamater()
            {
                AlphaBlend = new Value.Enum<AlphaBlendType>(AlphaBlendType.Blend);
                ViewpointDependent = new Value.Boolean(false);
                ColorAll = new Value.Enum<ColorAllType>(ColorAllType.Fixed);
                ColorAll_Fixed = new Value.Color(255, 255, 255, 255);
                ColorAll_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorAll_Easing = new ColorEasingParamater();

                Color = new Value.Enum<ColorType>(ColorType.Default);
                Color_Fixed_L = new Value.Color(255, 255, 255, 255);
                Color_Fixed_R = new Value.Color(255, 255, 255, 255);

                Position = new Value.Enum<PositionType>(PositionType.Default);
                Position_Fixed_L = new Value.Float(-0.5f);
                Position_Fixed_R = new Value.Float(0.5f);

                ColorTexture = new Value.Path(Properties.Resources.ImageFilter, true, "");
            }
Esempio n. 28
0
            public RibbonParamater()
            {
                AlphaBlend = new Value.Enum<AlphaBlendType>(AlphaBlendType.Blend);
                ViewpointDependent = new Value.Boolean(false);
                ColorAll = new Value.Enum<ColorAllType>(ColorAllType.Fixed);
                ColorAll_Fixed = new Value.Color(255, 255, 255, 255);
                ColorAll_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorAll_Easing = new ColorEasingParamater();

                Color = new Value.Enum<ColorType>(ColorType.Default);
                Color_Fixed_L = new Value.Color(255, 255, 255, 255);
                Color_Fixed_R = new Value.Color(255, 255, 255, 255);

                Position = new Value.Enum<PositionType>(PositionType.Default);
                Position_Fixed_L = new Value.Float(-0.5f);
                Position_Fixed_R = new Value.Float(0.5f);

                if(Core.Language == Language.Japanese)
                {
                    ColorTexture = new Value.Path("画像ファイル (*.png)|*.png", true, "");
                }
                else if(Core.Language == Language.English)
                {
                    ColorTexture = new Value.Path("Image File (*.png)|*.png", true, "");
                }
            }
 public EdgeParameter()
 {
     EdgeThreshold    = new Value.Float(0.0f, 1.0f, 0.0f, 0.01f);
     EdgeColor        = new Value.Color(255, 255, 255, 255);
     EdgeColorScaling = new Value.Int(1, int.MaxValue, 0);
 }
Esempio n. 30
0
            public SpriteParamater()
            {
                RenderingOrder = new Value.Enum<Data.RenderingOrder>(Data.RenderingOrder.FirstCreatedInstanceIsFirst);

                Billboard = new Value.Enum<BillboardType>(BillboardType.Billboard);
                AlphaBlend = new Value.Enum<AlphaBlendType>(AlphaBlendType.Blend);

                ColorAll = new Value.Enum<StandardColorType>(StandardColorType.Fixed);
                ColorAll_Fixed = new Value.Color(255, 255, 255, 255);
                ColorAll_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                ColorAll_Easing = new ColorEasingParamater();
                ColorAll_FCurve = new ColorFCurveParameter();

                Color = new Value.Enum<ColorType>(ColorType.Default);
                Color_Fixed_LL = new Value.Color(255, 255, 255, 255);
                Color_Fixed_LR = new Value.Color(255, 255, 255, 255);
                Color_Fixed_UL = new Value.Color(255, 255, 255, 255);
                Color_Fixed_UR = new Value.Color(255, 255, 255, 255);

                Position = new Value.Enum<PositionType>(PositionType.Default);
                Position_Fixed_LL = new Value.Vector2D(-0.5f, -0.5f);
                Position_Fixed_LR = new Value.Vector2D(0.5f, -0.5f);
                Position_Fixed_UL = new Value.Vector2D(-0.5f, 0.5f);
                Position_Fixed_UR = new Value.Vector2D(0.5f, 0.5f);
                ColorTexture = new Value.Path("画像ファイル (*.png)|*.png", true, "");
            }
Esempio n. 31
0
            public RingParamater()
            {
                RenderingOrder = new Value.Enum<Data.RenderingOrder>(Data.RenderingOrder.FirstCreatedInstanceIsFirst);

                Billboard = new Value.Enum<BillboardType>(BillboardType.Fixed);
                AlphaBlend = new Value.Enum<AlphaBlendType>(AlphaBlendType.Blend);

                VertexCount = new Value.Int(16, 256, 3);

                ViewingAngle = new Value.Enum<ViewingAngleType>(ViewingAngleType.Fixed);
                ViewingAngle_Fixed = new Value.Float(360.0f, 360.0f, 0.0f);
                ViewingAngle_Random = new Value.FloatWithRandom(360.0f, 360.0f, 0.0f);
                ViewingAngle_Easing = new FloatEasingParamater(360.0f, 360.0f, 0.0f);

                Outer = new Value.Enum<LocationType>(LocationType.Fixed);
                Outer_Fixed = new FixedLocation(2.0f, 0.0f);
                Outer_PVA = new PVALocation(2.0f, 0.0f);
                Outer_Easing = new Vector2DEasingParamater();

                Inner = new Value.Enum<LocationType>(LocationType.Fixed);
                Inner_Fixed = new FixedLocation(1.0f, 0.0f);
                Inner_PVA = new PVALocation(1.0f, 0.0f);
                Inner_Easing = new Vector2DEasingParamater();

                CenterRatio = new Value.Enum<CenterRatioType>(CenterRatioType.Fixed);
                CenterRatio_Fixed = new Value.Float(0.5f, 1.0f, 0.0f);
                CenterRatio_Random = new Value.FloatWithRandom(0.5f, 1.0f, 0.0f);
                CenterRatio_Easing = new FloatEasingParamater(0.5f, 1.0f, 0.0f);

                OuterColor = new Value.Enum<ColorType>(ColorType.Fixed);
                OuterColor_Fixed = new Value.Color(255, 255, 255, 0);
                OuterColor_Random = new Value.ColorWithRandom(255, 255, 255, 0);
                OuterColor_Easing = new ColorEasingParamater();

                CenterColor = new Value.Enum<ColorType>(ColorType.Fixed);
                CenterColor_Fixed = new Value.Color(255, 255, 255, 255);
                CenterColor_Random = new Value.ColorWithRandom(255, 255, 255, 255);
                CenterColor_Easing = new ColorEasingParamater();

                InnerColor = new Value.Enum<ColorType>(ColorType.Fixed);
                InnerColor_Fixed = new Value.Color(255, 255, 255, 0);
                InnerColor_Random = new Value.ColorWithRandom(255, 255, 255, 0);
                InnerColor_Easing = new ColorEasingParamater();

                ColorTexture = new Value.Path(Properties.Resources.ImageFilter, true, "");
            }