Ejemplo n.º 1
0
        /*Wenn die LoopList vertical gescrollt wurde, wird die TextLoopList gescrollt.*/
        private void MyLoopListOnScrolled(object sender, EventArgs e)
        {
            if (e != null)
            {
                LoopListArgs lla = (LoopListArgs)e;

                if (lla.GetId() != -1) // Wenn Minigame
                {
                    GreenScreen.Opacity    = 1;
                    Accessories.Opacity    = 1;
                    MyTextLoopList.Opacity = 0.7;
                    _isGameActive          = false;
                    _currentOffer          = new TravelOfferDao().SelectById(lla.GetId());
                }
                else
                {
                    _isGameActive          = true;
                    GreenScreen.Opacity    = 0.2;
                    Accessories.Opacity    = 0.2;
                    MyTextLoopList.Opacity = 0;
                }

                SetNewHat();

                switch (lla.GetDirection())
                {
                case Direction.Top:
                    _waitForTextList = MyTextLoopList.Anim(true);
                    break;

                case Direction.Down:
                    _waitForTextList = MyTextLoopList.Anim(false);
                    break;
                }
                ResetDragDirectionObvious();
                if (!_unclicked)
                {
                    _doDrag = true;
                }
            }
        }
Ejemplo n.º 2
0
        /*Wenn die LoopList vertical gescrollt wurde, wird die TextLoopList gescrollt.*/
        private void MyLoopListOnScrolled(object sender, EventArgs e)
        {
            if (e != null)
            {
                switch (((LoopListArgs)e).GetDirection())
                {
                case Direction.Top:
                    _waitForTextList = MyTextLoopList.Anim(true);
                    break;

                case Direction.Down:
                    _waitForTextList = MyTextLoopList.Anim(false);
                    break;
                }
                ResetDragDirectionObvious();
                if (!_mouseIsUp)
                {
                    _doDrag = true;
                }
            }
        }