Esempio n. 1
0
    IEnumerator LoadScene(float wait = 0f)
    {
        yield return(new WaitForSeconds(wait));

        LoadingText current = loadingTexts[0];

        current.FadeIn(0.2f);
        yield return(new WaitForSeconds(0.5f));

        GameManager.LoadScene(false);

        int count = loadingTexts.Length;

        for (int index = 1; index < count; index++)
        {
            current.Finish();
            current = loadingTexts[index];
            current.FadeIn(0.2f);
            float progress = 0.9f * index / (count - 1);
            while (GameManager.LoadProgress < progress || !current.IsComplete)
            {
                yield return(null);
            }
        }

        yield return(new WaitForSeconds(1f));

        Curtain.instance.ChangeColor(1f, Curtain.black_clear, Curtain.black, ActivateScene);
    }
        private void SetStatusMessage(StatusType status, string message)
        {
            currentStatus = status;

            if (currentStatus == StatusType.Loading)
            {
                LoadingSpinner.Start();
            }
            else
            {
                LoadingSpinner.Stop();
            }

            UIUtils.SetElementDisplay(LoadingIcon, currentStatus == StatusType.Error);
            if (currentStatus == StatusType.Error)
            {
                LoadingText.AddToClassList("icon");
            }
            else
            {
                LoadingText.RemoveFromClassList("icon");
            }

            LoadingText.text    = message;
            LoadingText.tooltip = currentStatus != StatusType.Loading ? "Click to refresh packages" : string.Empty;
        }
Esempio n. 3
0
        async public void LoadingTextAppear()
        {
            await LoadingText.ScaleTo(0, 4000);

            await LoadingText.ScaleTo(1, 4000);

            //LoadingText.IsVisible = true;
        }
        public PackageStatusBar()
        {
            root = Resources.GetTemplate("PackageStatusBar.uxml");
            Add(root);

            MoreAddOptionsButton.clickable.clicked += OnMoreAddOptionsButtonClick;

            LastErrorMessage     = string.Empty;
            operationsInProgress = new List <IBaseOperation>();

            SetDefaultMessage();

            PackageCollection.Instance.ListSignal.WhenOperation(OnListOrSearchOperation);
            PackageCollection.Instance.SearchSignal.WhenOperation(OnListOrSearchOperation);

            LoadingText.RegisterCallback <MouseDownEvent>(RefreshAll);
        }
Esempio n. 5
0
    // Use this for initialization
    void Start()
    {
        if (debugText == null)
        {
            debugText = FindObjectOfType <LoadingText>();
        }
        if (progressSlider == null)
        {
            progressSlider = FindObjectOfType <Slider>();
        }

        if (debugLocalUpload)
        {
            localFilePath = Application.dataPath + "/Resources/ScreenCaptureTrim.mp4";
            Debug.Log(localFilePath);
            Debug.Log("Debug Cookie String: " + debugCookieString);

            UploadFile("CSC301", "1", debugUsername, localFilePath, url);
        }
    }
Esempio n. 6
0
        private void SetStatusMessage(StatusType status, string message)
        {
            if (status == StatusType.Loading)
            {
                LoadingSpinner.Start();
            }
            else
            {
                LoadingSpinner.Stop();
            }

            UIUtils.SetElementDisplay(LoadingIcon, status == StatusType.Error);
            if (status == StatusType.Error)
            {
                LoadingText.AddToClassList("icon");
            }
            else
            {
                LoadingText.RemoveFromClassList("icon");
            }

            LoadingText.text = message;
        }
Esempio n. 7
0
        private void FadeOut()
        {
            System.Timers.Timer t = new System.Timers.Timer(10);
            t.Elapsed += (se, ev) => {
                if ((DateTime.Now - startUp).TotalSeconds < 2)
                {
                    return;
                }
                Invoke(new MethodInvoker(() =>
                {
                    Opacity       -= 0.02;
                    login.Opacity += 0.02;

                    if (Opacity <= 0)
                    {
                        Hide();
                        BootLoopGIF.Dispose();
                        LoadingText.Dispose();
                        t.Dispose();
                    }
                }));
            };
            t.Start();
        }
Esempio n. 8
0
        void ReleaseDesignerOutlets()
        {
            if (LoadingSpinner != null)
            {
                LoadingSpinner.Dispose();
                LoadingSpinner = null;
            }

            if (LoadingErrorImg != null)
            {
                LoadingErrorImg.Dispose();
                LoadingErrorImg = null;
            }

            if (LoadingText != null)
            {
                LoadingText.Dispose();
                LoadingText = null;
            }

            if (ReleasesNavSearchLoadingSpinner != null)
            {
                ReleasesNavSearchLoadingSpinner.Dispose();
                ReleasesNavSearchLoadingSpinner = null;
            }

            if (ReleasesNavCloseSearchBtn != null)
            {
                ReleasesNavCloseSearchBtn.Dispose();
                ReleasesNavCloseSearchBtn = null;
            }

            if (ReleasesNavSplitterLbl != null)
            {
                ReleasesNavSplitterLbl.Dispose();
                ReleasesNavSplitterLbl = null;
            }

            if (ReleasesSearchBtn != null)
            {
                ReleasesSearchBtn.Dispose();
                ReleasesSearchBtn = null;
            }

            if (ReleasesSearchBar != null)
            {
                ReleasesSearchBar.Dispose();
                ReleasesSearchBar = null;
            }

            if (ReleasesInStoresBtn != null)
            {
                ReleasesInStoresBtn.Dispose();
                ReleasesInStoresBtn = null;
            }

            if (ReleasesUpcomingBtn != null)
            {
                ReleasesUpcomingBtn.Dispose();
                ReleasesUpcomingBtn = null;
            }

            if (SectionHeader != null)
            {
                SectionHeader.Dispose();
                SectionHeader = null;
            }

            if (SectionTitle != null)
            {
                SectionTitle.Dispose();
                SectionTitle = null;
            }

            if (LoadingView != null)
            {
                LoadingView.Dispose();
                LoadingView = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (LoadingErrorImg != null)
            {
                LoadingErrorImg.Dispose();
                LoadingErrorImg = null;
            }

            if (DownloadsNavSearchLoadingSpinner != null)
            {
                DownloadsNavSearchLoadingSpinner.Dispose();
                DownloadsNavSearchLoadingSpinner = null;
            }

            if (DownloadsNavSplitterLbl != null)
            {
                DownloadsNavSplitterLbl.Dispose();
                DownloadsNavSplitterLbl = null;
            }

            if (DownloadsNavOutNowBtn != null)
            {
                DownloadsNavOutNowBtn.Dispose();
                DownloadsNavOutNowBtn = null;
            }

            if (DownloadsNavUpcomingBtn != null)
            {
                DownloadsNavUpcomingBtn.Dispose();
                DownloadsNavUpcomingBtn = null;
            }

            if (DownloadsNavSearchBar != null)
            {
                DownloadsNavSearchBar.Dispose();
                DownloadsNavSearchBar = null;
            }

            if (DownloadsNavSearchBtn != null)
            {
                DownloadsNavSearchBtn.Dispose();
                DownloadsNavSearchBtn = null;
            }

            if (DownloadsNavCloseBtn != null)
            {
                DownloadsNavCloseBtn.Dispose();
                DownloadsNavCloseBtn = null;
            }

            if (DownloadablesOutNowBtn != null)
            {
                DownloadablesOutNowBtn.Dispose();
                DownloadablesOutNowBtn = null;
            }

            if (DownloadablesUpcomingBtn != null)
            {
                DownloadablesUpcomingBtn.Dispose();
                DownloadablesUpcomingBtn = null;
            }

            if (LoadingView != null)
            {
                LoadingView.Dispose();
                LoadingView = null;
            }

            if (LoadingText != null)
            {
                LoadingText.Dispose();
                LoadingText = null;
            }

            if (LoadingSpinner != null)
            {
                LoadingSpinner.Dispose();
                LoadingSpinner = null;
            }

            if (DownloadableSgmntdBtn != null)
            {
                DownloadableSgmntdBtn.Dispose();
                DownloadableSgmntdBtn = null;
            }
        }
        async public void LoadingTextAppear()
        {
            await LoadingText.ScaleTo(0, 4000);

            await LoadingText.ScaleTo(1, 4000);
        }
Esempio n. 11
0
        void ReleaseDesignerOutlets()
        {
            if (LoadingErrorImg != null)
            {
                LoadingErrorImg.Dispose();
                LoadingErrorImg = null;
            }

            if (EventsNavSearchLoadingSpinner != null)
            {
                EventsNavSearchLoadingSpinner.Dispose();
                EventsNavSearchLoadingSpinner = null;
            }

            if (EventsTitleLbl != null)
            {
                EventsTitleLbl.Dispose();
                EventsTitleLbl = null;
            }

            if (EventsNavSearchBar != null)
            {
                EventsNavSearchBar.Dispose();
                EventsNavSearchBar = null;
            }

            if (HomeNavSearchBtn != null)
            {
                HomeNavSearchBtn.Dispose();
                HomeNavSearchBtn = null;
            }

            if (EventsNavSearchBtn != null)
            {
                EventsNavSearchBtn.Dispose();
                EventsNavSearchBtn = null;
            }

            if (EventsNavCloseBtn != null)
            {
                EventsNavCloseBtn.Dispose();
                EventsNavCloseBtn = null;
            }

            if (LoadingView != null)
            {
                LoadingView.Dispose();
                LoadingView = null;
            }

            if (LoadingText != null)
            {
                LoadingText.Dispose();
                LoadingText = null;
            }

            if (LoadingSpinner != null)
            {
                LoadingSpinner.Dispose();
                LoadingSpinner = null;
            }
        }