Exemplo n.º 1
0
        internal ColorWithRandom(
            byte r                = 0,
            byte g                = 0,
            byte b                = 0,
            byte a                = 0,
            byte r_max            = byte.MaxValue,
            byte r_min            = byte.MinValue,
            byte g_max            = byte.MaxValue,
            byte g_min            = byte.MinValue,
            byte b_max            = byte.MaxValue,
            byte b_min            = byte.MinValue,
            byte a_max            = byte.MaxValue,
            byte a_min            = byte.MinValue,
            DrawnAs drawnas       = Data.DrawnAs.CenterAndAmplitude,
            ColorSpace colorSpace = Data.ColorSpace.RGBA)
        {
            R       = new IntWithRandom(r, r_max, r_min);
            G       = new IntWithRandom(g, g_max, g_min);
            B       = new IntWithRandom(b, b_max, b_min);
            A       = new IntWithRandom(a, a_max, a_min);
            DrawnAs = drawnas;
            SetColorSpace(colorSpace, false, false);

            DefaultDrawnAs    = DrawnAs;
            DefaultColorSpace = ColorSpace;
        }
Exemplo n.º 2
0
 internal FourPointInterpolationParameter()
 {
     BeginThreshold      = new Value.FloatWithRandom(0.0f, 1.0f, 0.0f, DrawnAs.CenterAndAmplitude, 0.05f);
     TransitionFrameNum  = new Value.IntWithRandom(0, int.MaxValue, 0);
     No2Threshold        = new Value.FloatWithRandom(0.0f, 1.0f, 0.0f, DrawnAs.CenterAndAmplitude, 0.05f);
     No3Threshold        = new Value.FloatWithRandom(0.0f, 1.0f, 0.0f, DrawnAs.CenterAndAmplitude, 0.05f);
     TransitionFrameNum2 = new Value.IntWithRandom(0, int.MaxValue, 0);
     EndThreshold        = new Value.FloatWithRandom(0.0f, 1.0f, 0.0f, DrawnAs.CenterAndAmplitude, 0.05f);
 }
Exemplo n.º 3
0
 public UVAnimationParamater()
 {
     Start       = new Value.Vector2D();
     Size        = new Value.Vector2D();
     FrameLength = new Value.IntWithInifinite(1, false, int.MaxValue, 1);
     FrameCountX = new Value.Int(1, int.MaxValue, 1);
     FrameCountY = new Value.Int(1, int.MaxValue, 1);
     LoopType    = new Value.Enum <LoopType>(RendererCommonValues.LoopType.Once);
     StartSheet  = new Value.IntWithRandom(0, int.MaxValue, 0);
 }
Exemplo n.º 4
0
 internal SoundParamater(Value.Path basepath)
 {
     Wave     = new Value.PathForSound(basepath, Resources.GetString("SoundFilter"), true, "");
     Volume   = new Value.FloatWithRandom(1.0f, 1.0f, 0.0f, DrawnAs.CenterAndAmplitude, 0.1f);
     Pitch    = new Value.FloatWithRandom(0.0f, 2.0f, -2.0f, DrawnAs.CenterAndAmplitude, 0.1f);
     PanType  = new Value.Enum <ParamaterPanType>(ParamaterPanType.Sound2D);
     Pan      = new Value.FloatWithRandom(0.0f, 1.0f, -1.0f, DrawnAs.CenterAndAmplitude, 0.1f);
     Distance = new Value.Float(10.0f);
     Delay    = new Value.IntWithRandom(0, int.MaxValue, 0);
 }
Exemplo n.º 5
0
 internal SoundParamater()
 {
     Wave     = new Value.PathForSound("音声ファイル (*.wav)|*.wav", true, "");
     Volume   = new Value.FloatWithRandom(1.0f, 1.0f, 0.0f);
     Pitch    = new Value.FloatWithRandom(0.0f, 2.0f, -2.0f);
     PanType  = new Value.Enum <ParamaterPanType>(ParamaterPanType.Sound2D);
     Pan      = new Value.FloatWithRandom(0.0f, 1.0f, -1.0f);
     Distance = new Value.Float(10.0f);
     Delay    = new Value.IntWithRandom(0, int.MaxValue, 0);
 }
Exemplo n.º 6
0
 internal CommonValues()
 {
     MaxGeneration                   = new Value.IntWithInifinite(1, false, int.MaxValue, 0);
     LocationEffectType              = new Value.Enum <ParentEffectType>(ParentEffectType.Already);
     RotationEffectType              = new Value.Enum <ParentEffectType>(ParentEffectType.Already);
     ScaleEffectType                 = new Value.Enum <ParentEffectType>(ParentEffectType.Already);
     RemoveWhenLifeIsExtinct         = new Value.Boolean(true);
     RemoveWhenParentIsRemoved       = new Value.Boolean(false);
     RemoveWhenAllChildrenAreRemoved = new Value.Boolean(false);
     Life                 = new Value.IntWithRandom(100, int.MaxValue, 1);
     GenerationTime       = new Value.FloatWithRandom(1.0f, float.MaxValue, 0.00001f);
     GenerationTimeOffset = new Value.FloatWithRandom(0, float.MaxValue, float.MinValue);
 }
Exemplo n.º 7
0
 internal CommonValues()
 {
     MaxGeneration = new Value.IntWithInifinite(1, false, int.MaxValue, 0);
     LocationEffectType = new Value.Enum<ParentEffectType>(ParentEffectType.Already);
     RotationEffectType = new Value.Enum<ParentEffectType>(ParentEffectType.Already);
     ScaleEffectType = new Value.Enum<ParentEffectType>(ParentEffectType.Already);
     RemoveWhenLifeIsExtinct = new Value.Boolean(true);
     RemoveWhenParentIsRemoved = new Value.Boolean(false);
     RemoveWhenAllChildrenAreRemoved = new Value.Boolean(false);
     Life = new Value.IntWithRandom(100, int.MaxValue, 1);
     GenerationTime = new Value.FloatWithRandom(1.0f, float.MaxValue, 0.00001f);
     GenerationTimeOffset = new Value.FloatWithRandom(0.0f, float.MaxValue, 0.0f);
 }
Exemplo n.º 8
0
            public UVAnimationParamater()
            {
                Start       = new Value.Vector2D();
                Size        = new Value.Vector2D();
                FrameLength = new Value.IntWithInifinite(1, false, int.MaxValue, 1);
                FrameCountX = new Value.Int(1, int.MaxValue, 1);
                FrameCountY = new Value.Int(1, int.MaxValue, 1);
                LoopType    = new Value.Enum <LoopType>(RendererCommonValues.LoopType.Once);
                StartSheet  = new Value.IntWithRandom(0, int.MaxValue, 0);

#if __EFFEKSEER_BUILD_VERSION16__
                FlipbookInterpolationType = new Value.Enum <FlipbookInterpolationType>(RendererCommonValues.FlipbookInterpolationType.None);
#endif
            }
Exemplo n.º 9
0
            internal SoundParamater()
            {
                if (Core.Language == Language.Japanese)
                {
                    Wave = new Value.PathForSound("音声ファイル (*.wav)|*.wav", true, "");
                }
                else if (Core.Language == Language.English)
                {
                    Wave = new Value.PathForSound("Sound File (*.wav)|*.wav", true, "");
                }

                Volume   = new Value.FloatWithRandom(1.0f, 1.0f, 0.0f, DrawnAs.CenterAndAmplitude, 0.1f);
                Pitch    = new Value.FloatWithRandom(0.0f, 2.0f, -2.0f, DrawnAs.CenterAndAmplitude, 0.1f);
                PanType  = new Value.Enum <ParamaterPanType>(ParamaterPanType.Sound2D);
                Pan      = new Value.FloatWithRandom(0.0f, 1.0f, -1.0f, DrawnAs.CenterAndAmplitude, 0.1f);
                Distance = new Value.Float(10.0f);
                Delay    = new Value.IntWithRandom(0, int.MaxValue, 0);
            }
Exemplo n.º 10
0
        internal CommonValues()
        {
            MaxGeneration                   = new Value.IntWithInifinite(1, false, int.MaxValue, 1);
            LocationEffectType              = new Value.Enum <TranslationParentEffectType>(TranslationParentEffectType.Already);
            RotationEffectType              = new Value.Enum <ParentEffectType>(ParentEffectType.Already);
            ScaleEffectType                 = new Value.Enum <ParentEffectType>(ParentEffectType.Already);
            RemoveWhenLifeIsExtinct         = new Value.Boolean(true);
            RemoveWhenParentIsRemoved       = new Value.Boolean(false);
            RemoveWhenAllChildrenAreRemoved = new Value.Boolean(false);
            Life                  = new Value.IntWithRandom(100, int.MaxValue, 1);
            GenerationTime        = new Value.FloatWithRandom(1.0f, float.MaxValue, 0.00001f);
            GenerationTimeOffset  = new Value.FloatWithRandom(0, float.MaxValue, float.MinValue);
            SteeringBehaviorParam = new SteeringBehaviorParameter();

            // dynamic parameter
            MaxGeneration.CanSelectDynamicEquation        = true;
            Life.CanSelectDynamicEquation                 = true;
            GenerationTime.CanSelectDynamicEquation       = true;
            GenerationTimeOffset.CanSelectDynamicEquation = true;
        }
Exemplo n.º 11
0
        public static void LoadFromElement(XmlElement e, Value.IntWithRandom value, bool isClip)
        {
            var e_c   = e["Center"];
            var e_max = e["Max"];
            var e_min = e["Min"];
            var e_da  = e["DrawnAs"];

            if (e_c != null)
            {
                var center = e_c.GetTextAsInt();
                value.SetCenter(center);
            }

            if (e_max != null)
            {
                var max = e_max.GetTextAsInt();
                value.SetMax(max);
            }
            else
            {
                value.SetMax(value.DefaultValueMax);
            }

            if (e_min != null)
            {
                var min = e_min.GetTextAsInt();
                value.SetMin(min);
            }
            else
            {
                value.SetMin(value.DefaultValueMin);
            }

            if (e_da != null)
            {
                value.DrawnAs = (DrawnAs)e_da.GetTextAsInt();
            }
        }
Exemplo n.º 12
0
        public static XmlElement SaveToElement(XmlDocument doc, string element_name, Value.IntWithRandom value, bool isClip)
        {
            var e = doc.CreateElement(element_name);

            if (value.DefaultValueCenter != value.Center)
            {
                e.AppendChild(doc.CreateTextElement("Center", value.Center.ToString()));
            }
            if (value.DefaultValueMax != value.Max)
            {
                e.AppendChild(doc.CreateTextElement("Max", value.Max.ToString()));
            }
            if (value.DefaultValueMin != value.Min)
            {
                e.AppendChild(doc.CreateTextElement("Min", value.Min.ToString()));
            }
            if (value.DefaultDrawnAs != value.DrawnAs)
            {
                e.AppendChild(doc.CreateTextElement("DrawnAs", (int)value.DrawnAs));
            }

            return(e.ChildNodes.Count > 0 ? e : null);
        }
Exemplo n.º 13
0
            internal SoundParamater()
            {
                if(Core.Language == Language.Japanese)
                {
                    Wave = new Value.PathForSound("音声ファイル (*.wav)|*.wav", true, "");
                }
                else if(Core.Language == Language.English)
                {
                    Wave = new Value.PathForSound("Sound File (*.wav)|*.wav", true, "");
                }

                Volume = new Value.FloatWithRandom(1.0f, 1.0f, 0.0f);
                Pitch = new Value.FloatWithRandom(0.0f, 2.0f, -2.0f);
                PanType = new Value.Enum<ParamaterPanType>(ParamaterPanType.Sound2D);
                Pan = new Value.FloatWithRandom(0.0f, 1.0f, -1.0f);
                Distance = new Value.Float(10.0f);
                Delay = new Value.IntWithRandom(0, int.MaxValue, 0);
            }
Exemplo n.º 14
0
 internal SoundParamater()
 {
     Wave = new Value.PathForSound(Properties.Resources.SoundFilter, true, "");
     Volume = new Value.FloatWithRandom(1.0f, 1.0f, 0.0f, DrawnAs.CenterAndAmplitude, 0.1f);
     Pitch = new Value.FloatWithRandom(0.0f, 2.0f, -2.0f, DrawnAs.CenterAndAmplitude, 0.1f);
     PanType = new Value.Enum<ParamaterPanType>(ParamaterPanType.Sound2D);
     Pan = new Value.FloatWithRandom(0.0f, 1.0f, -1.0f, DrawnAs.CenterAndAmplitude, 0.1f);
     Distance = new Value.Float(10.0f);
     Delay = new Value.IntWithRandom(0, int.MaxValue, 0);
 }
Exemplo n.º 15
0
 internal SoundParamater()
 {
     Wave = new Value.PathForSound("音声ファイル (*.wav)|*.wav", true, "");
     Volume = new Value.FloatWithRandom(1.0f, 1.0f, 0.0f);
     Pitch = new Value.FloatWithRandom(0.0f, 2.0f, -2.0f);
     PanType = new Value.Enum<ParamaterPanType>(ParamaterPanType.Sound2D);
     Pan = new Value.FloatWithRandom(0.0f, 1.0f, -1.0f);
     Distance = new Value.Float(10.0f);
     Delay = new Value.IntWithRandom(0, int.MaxValue, 0);
 }