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

            base.OnCurrentAnimationChanged(args);

            GenerateRemoveToggles();
        }
        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();
        }
Beispiel #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();
        }
Beispiel #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();
        }
Beispiel #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();
        }
Beispiel #7
0
        protected override void OnCurrentAnimationChanged(AtomAnimation.CurrentAnimationChangedEventArgs args)
        {
            base.OnCurrentAnimationChanged(args);

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

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