コード例 #1
0
ファイル: OptionValues.cs プロジェクト: spwork/Effekseer
        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();
        }
コード例 #2
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);
        }