Exemple #1
0
        static void DisplayProgress(
            UpdateOperationStatus status,
            BuildProgressSpeedAndRemainingTime.ProgressData progressData,
            string cloudRepository)
        {
            string totalProgressMessage = UpdateProgressRender.
                                          GetProgressString(status, progressData);

            float totalProgressPercent = GetProgressBarPercent.
                                         ForTransfer(status.UpdatedSize, status.TotalSize) / 100f;

            EditorUtility.DisplayProgressBar(
                string.Format("Downloading {0}", cloudRepository),
                totalProgressMessage, totalProgressPercent);
        }
Exemple #2
0
        internal void OnUpdateProgress()
        {
            var progress = mWorkspaceWindow.Progress;

            progress.ProgressHeader = UpdateProgressRender.FixNotificationPath(
                mWkPath, mNotifier.GetNotificationMessage());

            UpdateOperationStatus status = mNotifier.GetUpdateStatus();

            progress.TotalProgressMessage = UpdateProgressRender.GetProgressString(
                status, mProgressData);

            progress.TotalProgressPercent = GetProgressBarPercent.ForTransfer(
                status.UpdatedSize, status.TotalSize) / 100f;
        }
Exemple #3
0
        internal void OnUpdateProgress()
        {
            var progress = mGuiClient.Progress;

            progress.ProgressHeader = FixNotificationPath(
                mWkPath, mNotifier.GetNotificationMessage());

            UpdateOperationStatus status = mNotifier.GetUpdateStatus();

            string totalSize   = SizeConverter.ConvertToSizeString(status.TotalSize);
            string updatedSize = SizeConverter.ConvertToSizeString(status.UpdatedSize);

            progress.TotalProgressMessage = PlasticLocalization.GetString(
                status.IsCalculating ?
                PlasticLocalization.Name.UpdateProgressCalculating :
                PlasticLocalization.Name.UpdateProgress,
                updatedSize, totalSize, status.UpdatedFiles, status.TotalFiles);

            progress.TotalProgressPercent = CalculateProgress(status.UpdatedSize, status.TotalSize);
        }