Пример #1
0
            public ConstArg(
                int initiallyCursoredElementIndex,
                int[] cursorSize,
                float startSearchSpeed,
                bool activatesCursoredElementsOnly,

                Vector2 relativeCursorPosition,
                ScrollerAxis scrollerAxis,
                Vector2 rubberBandLimitMultiplier,
                bool isEnabledInertia,
                float inertiaDecay,
                bool swipeToSnapNext,
                float newScrollSpeedThreshold,

                IUIElementGroupScrollerAdaptor adaptor,
                ActivationMode activationMode
                ) : base(
                    scrollerAxis,
                    relativeCursorPosition,
                    rubberBandLimitMultiplier,
                    isEnabledInertia,
                    inertiaDecay,
                    newScrollSpeedThreshold,

                    adaptor,
                    activationMode
                    )
            {
                thisCursorSize = cursorSize;
                thisInitiallyCursoredElementIndex = initiallyCursoredElementIndex;
                thisStartSearchSpeed = startSearchSpeed;
                thisSwipeToSnapNext  = swipeToSnapNext;
                thisActivatesCursoredElementsOnly = activatesCursoredElementsOnly;
            }
        public CyclableUIElementGroupScrollerConstArg(
            bool[] isCycleEnabled,
            int initiallyCursoredElementIndex,
            int[] cursorSize,
            float startSearchSpeed,
            bool activatesCursoredElementsOnly,

            Vector2 relativeCursorPosition,
            ScrollerAxis scrollerAxis,
            Vector2 rubberBandLimitMultiplier,
            bool isEnabledInertia,
            bool swipeToSnapNext,
            float newScrollSpeedThreshold,

            IUIManager uim,
            IUISystemProcessFactory processFactory,
            IUIElementFactory uieFactory,
            IUIElementGroupScrollerAdaptor uia,
            IUIImage image,
            ActivationMode activationMode
            ) : base(
                initiallyCursoredElementIndex,
                cursorSize,
                startSearchSpeed,
                activatesCursoredElementsOnly,

                relativeCursorPosition,
                scrollerAxis,
                rubberBandLimitMultiplier,
                isEnabledInertia,
                swipeToSnapNext,
                newScrollSpeedThreshold,

                uim,
                processFactory,
                uieFactory,
                uia,
                image,
                activationMode
                )
        {
            thisIsCycleEnabled = isCycleEnabled;
        }
Пример #3
0
 public ScrollerConstraintRectCalculationData(
     Vector2 elementToPaddingRatio,
     IUIAdaptor parentUIAdaptor,
     Vector2 groupLengthAsNonScrollerElement
     )
 {
     thisElementToPaddingRatio = elementToPaddingRatio;
     if (parentUIAdaptor != null)
     {
         if (parentUIAdaptor is IUIElementGroupScrollerAdaptor)
         {
             parentIsGroupScroller = true;
             IUIElementGroupScrollerAdaptor groupScrollerAdaptor = (IUIElementGroupScrollerAdaptor)parentUIAdaptor;
             thisGroupScrollerLength = groupScrollerAdaptor.GetRectSize();
             thisCursorSize          = groupScrollerAdaptor.GetCursorSize();
             return;
         }
     }
     thisGroupLengthAsNonScrollerElement = groupLengthAsNonScrollerElement;
 }