Exemple #1
0
        private void Init()
        {
            if (state == null)
            {
                state = new WindowState(this);
            }

            if (playHead == null)
            {
                playHead          = new TimeAreaItem(TimelineFuncHelper.timeCursor, state, OnTrackHeadDrag, false);
                playHead.drawHead = true;
                playHead.drawLine = true;
            }
            if (timeArea == null)
            {
                timeArea = new TimeAreaHelper(false)
                {
                    hRangeLocked    = false,
                    vRangeLocked    = true,
                    margin          = -2,
                    scaleWithWindow = true,
                    hSlider         = true,
                    vSlider         = false,
                    hBaseRangeMin   = 0,
                    hBaseRangeMax   = 20,
                    hRangeMin       = 0,
                    hRangeMax       = 100,
                    hScaleMax       = 1000f,
                    rect            = TimeContent,
                };
                m_PostManipulators.Add(new NewEventMenuManipulator(state));
            }
        }
Exemple #2
0
 public PlayAnimationControl(WindowState state) : base(state)
 {
     endTime           = new TimeAreaItem(TimelineFuncHelper.timeCursor, state, null, true);
     endTime.drawHead  = false;
     endTime.drawLine  = true;
     endTime.lineColor = color;
     endTime.headColor = color;
 }
Exemple #3
0
 public PlayEffectControl(WindowState state) : base(state)
 {
     timeEndControl           = new TimeAreaItem(TimelineFuncHelper.timeCursor, state, OnDragEnd, true);
     timeEndControl.drawHead  = true;
     timeEndControl.drawLine  = true;
     timeEndControl.lineColor = color;
     timeEndControl.headColor = color;
 }
        public TriggerAnimationControl(WindowState state) : base(state)
        {
            timeStartControl.drawHead = false;

            timeEndControl           = new TimeAreaItem(TimelineFuncHelper.timeCursor, state, null, true);
            timeEndControl.drawHead  = false;
            timeEndControl.drawLine  = true;
            timeEndControl.lineColor = color;
            timeEndControl.headColor = color;
        }