Ejemplo n.º 1
0
 protected override void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
 {
     base.OnCurrentAnimationChanged(args);
     args.Before.onTargetsSelectionChanged.RemoveListener(OnSelectionChanged);
     args.After.onTargetsSelectionChanged.AddListener(OnSelectionChanged);
     RefreshTargetsList();
 }
Ejemplo n.º 2
0
        protected override void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
        {
            args.Before.onTargetsListChanged.RemoveListener(OnTargetsListChanged);
            args.After.onTargetsListChanged.AddListener(OnTargetsListChanged);

            base.OnCurrentAnimationChanged(args);

            GenerateRemoveToggles();
        }
Ejemplo n.º 3
0
        protected override void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
        {
            base.OnCurrentAnimationChanged(args);

            args.before.onAnimationSettingsChanged.RemoveListener(OnAnimationSettingsChanged);
            args.before.onPlaybackSettingsChanged.RemoveListener(OnPlaybackSettingsChanged);
            args.after.onAnimationSettingsChanged.AddListener(OnAnimationSettingsChanged);
            args.after.onPlaybackSettingsChanged.AddListener(OnPlaybackSettingsChanged);

            UpdateValues();
        }
Ejemplo n.º 4
0
        protected override void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
        {
            args.before.onTargetsListChanged.RemoveListener(OnTargetsListChanged);
            args.before.onTargetsSelectionChanged.RemoveListener(UpdateRemoveUI);
            args.after.onTargetsListChanged.AddListener(OnTargetsListChanged);
            args.after.onTargetsSelectionChanged.AddListener(UpdateRemoveUI);

            base.OnCurrentAnimationChanged(args);

            UpdateRemoveUI();
        }
Ejemplo n.º 5
0
        protected override void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
        {
            base.OnCurrentAnimationChanged(args);

            args.before.onTargetsSelectionChanged.RemoveListener(OnTargetsSelectionChanged);
            args.after.onTargetsSelectionChanged.AddListener(OnTargetsSelectionChanged);

            if (current.animationLength < _endJSON.valNoCallback)
            {
                _endJSON.valNoCallback = current.animationLength;
                if (_startJSON.valNoCallback > _endJSON.valNoCallback)
                {
                    _startJSON.valNoCallback = _endJSON.valNoCallback;
                }
            }

            SelectionModified();
        }
Ejemplo n.º 6
0
        protected override void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
        {
            base.OnCurrentAnimationChanged(args);

            args.Before.onTargetsSelectionChanged.RemoveListener(OnTargetsSelectionChanged);
            args.After.onTargetsSelectionChanged.AddListener(OnTargetsSelectionChanged);

            if (current.animationLength < _selectionEnd)
            {
                _selectionEnd = current.animationLength;
                if (_selectionStart > _selectionEnd)
                {
                    _selectionStart = _selectionEnd;
                }
            }

            SelectionModified();
        }
Ejemplo n.º 7
0
        protected override void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
        {
            base.OnCurrentAnimationChanged(args);

            UpdateValues();
        }
Ejemplo n.º 8
0
 private void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
 {
     animationJSON.valNoCallback = animation.Current.AnimationName;
     OnAnimationParametersChanged();
 }
Ejemplo n.º 9
0
        protected override void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
        {
            base.OnCurrentAnimationChanged(args);

            RefreshAnimationsList();
        }
Ejemplo n.º 10
0
 private void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
 {
     UnbindClip();
     BindClip(args.After);
 }
Ejemplo n.º 11
0
 private void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
 {
     _animationsJSON.valNoCallback = args.after.animationName;
 }
Ejemplo n.º 12
0
 private void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
 {
     animationJSON.valNoCallback = args.after.animationName;
     peers.SendCurrentAnimation(animation.current);
     OnAnimationParametersChanged();
 }
Ejemplo n.º 13
0
 protected virtual void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
 {
     current = plugin.animation?.Current;
 }