예제 #1
0
        public override IModifierSync Clone(int cloneFlags)
        {
            var m = new UnsyncedModifier();

            CopyTo(m, cloneFlags);
            return(m);
        }
예제 #2
0
        private void CreateTestStuff(Atom a)
        {
            var s = new Step();

            var mc = new MorphModifier(a);

            mc.Progression = new SequentialMorphProgression(false, 0);
            mc.AddMorph("Mouth Open", new Movement(0, 1));
            mc.AddMorph("F", new Movement(0, 1));

            var um = new UnsyncedModifier();

            um.Duration = new RandomDuration(1);
            um.Delay    = new Delay(new RandomDuration(1), true, true);
            s.AddModifier(new ModifierContainer(mc, um));

            manager_.AddStep(s);
        }
예제 #3
0
        public override void AddToUI(IModifierSync s)
        {
            unsynced_ = s as UnsyncedModifier;
            if (unsynced_ == null)
            {
                return;
            }

            durationWidgets_.SetValue(unsynced_.Duration);
            delayWidgets_.SetValue(unsynced_.Delay);

            durationCollapsible_.Clear();
            durationCollapsible_.Add(durationWidgets_.GetWidgets());

            delayCollapsible_.Clear();
            delayCollapsible_.Add(delayWidgets_.GetWidgets());

            durationCollapsible_.AddToUI();
            delayCollapsible_.AddToUI();

            copy_.AddToUI();
            syncToThis_.AddToUI();
        }
예제 #4
0
 private void CopyTo(UnsyncedModifier m, int cloneFlags)
 {
     m.Duration = Duration?.Clone(cloneFlags);
     m.Delay    = Delay.Clone(cloneFlags);
 }