using System; using JetBrains.Annotations; using Unity.Cloud.Collaborate.Assets; using Unity.Cloud.Collaborate.UserInterface; using UnityEditor; using UnityEditor.UIElements; using UnityEngine; using UnityEngine.UIElements; namespace Unity.Cloud.Collaborate.Components { [UsedImplicitly] internal class ProgressView : VisualElement { public const string UssClassName = "progress-view"; public const string LabelUssClassName = UssClassName + "__label"; public const string ProgressBarUssClassName = UssClassName + "__progress-bar"; public const string ButtonUssClassName = UssClassName + "__button"; static readonly string k_LayoutPath = $"{CollaborateWindow.LayoutPath}/{nameof(ProgressView)}.uxml"; static readonly string k_StylePath = $"{CollaborateWindow.StylePath}/{nameof(ProgressView)}.uss"; readonly Label m_Label; readonly ProgressBar m_ProgressBar; readonly Button m_Button; public ProgressView() { AddToClassList(UssClassName); AssetDatabase.LoadAssetAtPath(k_LayoutPath).CloneTree(this); styleSheets.Add(AssetDatabase.LoadAssetAtPath(k_StylePath)); m_Label = this.Q