9092858a58
I updated everything to the latest Unity Editor. Also realized I had the wrong shaders on my hairs, those are fixed and the hairs look MUCH better!
42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using GluonGui.WorkspaceWindow.Views.WorkspaceExplorer.Explorer;
|
|
|
|
namespace Unity.PlasticSCM.Editor.Gluon
|
|
{
|
|
internal class UpdateProgress
|
|
{
|
|
internal UpdateProgress(WorkspaceWindow workspaceWindow)
|
|
{
|
|
mWorkspaceWindow = workspaceWindow;
|
|
}
|
|
|
|
internal void Cancel()
|
|
{
|
|
if (mUpdateProgress == null)
|
|
return;
|
|
|
|
mUpdateProgress.Cancel();
|
|
}
|
|
|
|
internal void SetCancellable(bool bCancelable)
|
|
{
|
|
mWorkspaceWindow.Progress.CanCancelProgress = bCancelable;
|
|
}
|
|
|
|
internal void RefreshProgress(
|
|
Codice.Client.BaseCommands.UpdateProgress progress,
|
|
UpdateProgressData updateProgressData)
|
|
{
|
|
mUpdateProgress = progress;
|
|
|
|
mWorkspaceWindow.Progress.ProgressHeader = updateProgressData.Details;
|
|
|
|
mWorkspaceWindow.Progress.TotalProgressMessage = updateProgressData.Status;
|
|
mWorkspaceWindow.Progress.TotalProgressPercent = updateProgressData.ProgressValue / 100;
|
|
}
|
|
|
|
Codice.Client.BaseCommands.UpdateProgress mUpdateProgress;
|
|
|
|
WorkspaceWindow mWorkspaceWindow;
|
|
}
|
|
}
|