Initial Commit
This commit is contained in:
parent
53eb92e9af
commit
270ab7d11f
15341 changed files with 700234 additions and 0 deletions
|
@ -0,0 +1,35 @@
|
|||
using JetBrains.Annotations;
|
||||
using Unity.Cloud.Collaborate.UserInterface;
|
||||
using UnityEditor;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace Unity.Cloud.Collaborate.Components
|
||||
{
|
||||
internal class ListNotice : VisualElement
|
||||
{
|
||||
public const string UssClassName = "list-notice";
|
||||
public const string ListNoticeTextUssClassName = UssClassName + "__text";
|
||||
|
||||
static readonly string k_LayoutPath = $"{CollaborateWindow.LayoutPath}/{nameof(ListNotice)}.uxml";
|
||||
static readonly string k_StylePath = $"{CollaborateWindow.StylePath}/{nameof(ListNotice)}.uss";
|
||||
|
||||
readonly Label m_Text;
|
||||
|
||||
public ListNotice()
|
||||
{
|
||||
AddToClassList(UssClassName);
|
||||
AssetDatabase.LoadAssetAtPath<VisualTreeAsset>(k_LayoutPath).CloneTree(this);
|
||||
styleSheets.Add(AssetDatabase.LoadAssetAtPath<StyleSheet>(k_StylePath));
|
||||
|
||||
m_Text = this.Q<Label>(className: ListNoticeTextUssClassName);
|
||||
}
|
||||
|
||||
public string Text
|
||||
{
|
||||
set => m_Text.text = value;
|
||||
}
|
||||
|
||||
[UsedImplicitly]
|
||||
public new class UxmlFactory : UxmlFactory<ListNotice> { }
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue