Beispiel #1
0
 private void MoveToRightPage()
 {
     this.mListChangeType = UIDutyGrid.ChangeType.Right;
     if (this.GoToPage(base.GetCurrentPageIndex() + 1))
     {
         this.OnChangePage();
         this.ChangeHoverSummary(this.GetSummaryView(0), false);
         this.PlaySE(SEFIleInfos.CommonCursolMove);
     }
 }
Beispiel #2
0
        public bool GoToPage(int pageIndex, bool focus)
        {
            bool flag = base.GoToPage(pageIndex);

            if (flag)
            {
                this.mListChangeType = UIDutyGrid.ChangeType.Update;
                if (focus)
                {
                    this.ChangeHoverSummary(this.GetSummaryView(0), false);
                }
            }
            return(flag);
        }
Beispiel #3
0
 public override void Initialize(DutyModel[] models)
 {
     this.mListChangeType = UIDutyGrid.ChangeType.Update;
     base.Initialize(models);
     this.OnChangePage();
 }
Beispiel #4
0
        private void OnFinishedCreateViewsCoroutine()
        {
            UIDutySummary[] summaryViews = this.GetSummaryViews();
            int             num          = 0;

            UIDutyGrid.ChangeType changeType = this.mListChangeType;
            int num2;

            if (changeType != UIDutyGrid.ChangeType.Left)
            {
                if (changeType != UIDutyGrid.ChangeType.Right)
                {
                    num2 = 0;
                }
                else
                {
                    num2 = 1;
                }
            }
            else
            {
                num2 = -1;
            }
            UIDutySummary[] array = summaryViews;
            for (int i = 0; i < array.Length; i++)
            {
                UIDutySummary uIDutySummary = array[i];
                uIDutySummary.SetDepth(summaryViews.Length - num);
                Vector3  localPosition = uIDutySummary.get_gameObject().get_transform().get_localPosition();
                Sequence sequence      = DOTween.Sequence();
                switch (this.mListChangeType)
                {
                case UIDutyGrid.ChangeType.None:
                {
                    uIDutySummary.get_gameObject().get_transform().set_localPosition(new Vector3(localPosition.x, 0f, localPosition.z));
                    Sequence sequence2 = DOTween.Sequence();
                    Tween    tween     = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(uIDutySummary.get_transform(), localPosition.y, 0.6f, false), 15);
                    TweenSettingsExtensions.Append(sequence2, tween);
                    UIDutySummary dsum = uIDutySummary;
                    if (num != 0)
                    {
                        Tween tween2 = DOVirtual.Float(0f, 1f, 0.6f, delegate(float alpha)
                            {
                                dsum.GetPanel().alpha = alpha;
                            });
                        TweenSettingsExtensions.Join(sequence2, tween2);
                    }
                    uIDutySummary.Show();
                    TweenSettingsExtensions.Join(sequence, sequence2);
                    break;
                }

                case UIDutyGrid.ChangeType.Left:
                case UIDutyGrid.ChangeType.Right:
                {
                    uIDutySummary.get_gameObject().get_transform().set_localPosition(new Vector3(960f * (float)num2, localPosition.y, localPosition.z));
                    Tween tween3 = TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOLocalMoveX(uIDutySummary.get_transform(), 0f, 0.6f, false), 0.05f * (float)num), 15);
                    uIDutySummary.Show();
                    TweenSettingsExtensions.Join(sequence, tween3);
                    break;
                }

                case UIDutyGrid.ChangeType.Update:
                {
                    uIDutySummary.get_gameObject().get_transform().set_localPosition(new Vector3(localPosition.x, 0f, localPosition.z));
                    Sequence sequence3 = DOTween.Sequence();
                    Tween    tween4    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(uIDutySummary.get_transform(), localPosition.y, 0.6f, false), 15);
                    TweenSettingsExtensions.Append(sequence3, tween4);
                    UIDutySummary dsumt = uIDutySummary;
                    if (num != 0)
                    {
                        Tween tween5 = DOVirtual.Float(0f, 1f, 0.7f, delegate(float alpha)
                            {
                                dsumt.GetPanel().alpha = alpha;
                            });
                        TweenSettingsExtensions.Join(sequence3, tween5);
                    }
                    uIDutySummary.Show();
                    TweenSettingsExtensions.Join(sequence, sequence3);
                    break;
                }
                }
                num++;
            }
        }