53 lines
1.1 KiB
C#
53 lines
1.1 KiB
C#
using System.Collections;
|
|
using KitsuneCafe.ItemSystem;
|
|
using KitsuneCafe.UI.MVVM;
|
|
using UnityEngine;
|
|
using UnityEngine.UIElements;
|
|
|
|
namespace KitsuneCafe.UI
|
|
{
|
|
public class InventoryScreen : MonoBehaviour
|
|
{
|
|
public const string ItemListIndicators = "item-list-indicator";
|
|
public const string ItemList = "item-list";
|
|
|
|
|
|
|
|
public const string ItemDetailsTitle = "item-details-title-label";
|
|
public const string ItemDetailsContent = "item-details-content-label";
|
|
|
|
[SerializeField]
|
|
private UIDocument doc;
|
|
|
|
[SerializeField]
|
|
private Inventory inventory;
|
|
|
|
[SerializeField]
|
|
private VisualTreeAsset template;
|
|
|
|
private VisualElement root => doc.rootVisualElement;
|
|
|
|
private VisualElement indicators;
|
|
private VisualElement itemList;
|
|
private VisualElement detailsTitle;
|
|
private VisualElement detailsContent;
|
|
|
|
private void OnValidate()
|
|
{
|
|
if (doc == null)
|
|
{
|
|
doc = GetComponent<UIDocument>();
|
|
}
|
|
}
|
|
|
|
private void Reset()
|
|
{
|
|
OnValidate();
|
|
}
|
|
|
|
private void Start()
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|