1
This commit is contained in:
30
Unity/Scripts/UX/Core/UXContainer.cs
Normal file
30
Unity/Scripts/UX/Core/UXContainer.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UIElements;
|
||||
namespace BITKit.UX
|
||||
{
|
||||
public class UXContainer
|
||||
{
|
||||
public static implicit operator VisualElement(UXContainer self) => self.visualElement;
|
||||
public Label contextlabel;
|
||||
public Label titleLabel;
|
||||
public Label descriptionLabel;
|
||||
public Label numberLabel;
|
||||
public Button button;
|
||||
public Button secButton;
|
||||
public VisualElement visualElement;
|
||||
public VisualElement icon;
|
||||
public UXContainer(VisualElement visualElement)
|
||||
{
|
||||
this.visualElement = visualElement;
|
||||
contextlabel = visualElement.Q<Label>(UXConstant.ContextLabel);
|
||||
titleLabel = visualElement.Q<Label>(UXConstant.TitleLabel);
|
||||
numberLabel = visualElement.Q<Label>(UXConstant.TitleLabel);
|
||||
descriptionLabel = visualElement.Q<Label>(UXConstant.DescriptionLabel);
|
||||
button = visualElement.Q<Button>(UXConstant.MainButton);
|
||||
secButton = visualElement.Q<Button>(UXConstant.SecButton);
|
||||
icon = visualElement.Q(UXConstant.Icon);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user