arenos-nexus/Arenos Nexus/Library/PackageCache/com.unity.collab-proxy@ab839cc7d2ad/Editor/UVCSToolbar/Headless/HeadlessProgressControls.cs
Daniel 2e704cae70 init
Init Commit Unity
2025-09-25 22:01:28 +02:00

46 lines
1.1 KiB
C#

using UnityEditor;
using PlasticGui;
namespace Unity.PlasticSCM.Editor.Toolbar.Headless
{
internal class HeadlessProgressControls : IProgressControls
{
void IProgressControls.ShowProgress(string message)
{
if (mProgressId != -1)
Progress.Finish(mProgressId);
mProgressId = Progress.Start(message, null, Progress.Options.Indefinite);
}
void IProgressControls.HideProgress()
{
Progress.Finish(mProgressId);
mProgressId = -1;
}
void IProgressControls.ShowError(string message)
{
UnityEngine.Debug.LogError(message);
}
void IProgressControls.ShowNotification(string message)
{
UnityEngine.Debug.Log(message);
}
void IProgressControls.ShowSuccess(string message)
{
UnityEngine.Debug.Log(message);
}
void IProgressControls.ShowWarning(string message)
{
UnityEngine.Debug.LogWarning(message);
}
int mProgressId = -1;
}
}