using System; using JetBrains.Annotations; using Unity.Cloud.Collaborate.Assets; using Unity.Cloud.Collaborate.Components; using Unity.Cloud.Collaborate.Presenters; using Unity.Cloud.Collaborate.UserInterface; using UnityEditor; using UnityEngine.UIElements; namespace Unity.Cloud.Collaborate.Views { internal class StartPageView : PageComponent, IStartView { public const string UssClassName = "start-page-view"; public const string UssTitleClassName = UssClassName + "__title"; public const string UssButtonClassName = UssClassName + "__button"; static readonly string k_LayoutPath = $"{CollaborateWindow.LayoutPath}/{nameof(StartPageView)}.uxml"; static readonly string k_StylePath = $"{CollaborateWindow.StylePath}/{nameof(StartPageView)}.uss"; IStartPresenter m_Presenter; readonly Label m_Text; readonly Button m_Button; public StartPageView() { AddToClassList(UssClassName); AssetDatabase.LoadAssetAtPath(k_LayoutPath).CloneTree(this); styleSheets.Add(AssetDatabase.LoadAssetAtPath(k_StylePath)); m_Text = this.Q