projectEli/Assets/Inventory System/Scripts/UI/InspectionWindowUI.cs

44 lines
1.1 KiB
C#
Raw Normal View History

2023-03-15 11:43:15 +00:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
namespace SimpleInventorySystem
{
public class InspectionWindowUI : WindowUI
{
public TextMeshProUGUI categoryText;
public TextMeshProUGUI WeightText;
public Button DropButton;
public GameObject ItemTraitPrefab;
public TextMeshProUGUI ShortDescriptionText;
// Start is called before the first frame update
void Start()
{
if (dragWindowUI != null)
{
dragWindowUI.title.text = ItemUI.itemName;
}
if(categoryText != null)
{
categoryText.text = $"{ItemUI.category} > {ItemUI.subCategory}";
}
if (WeightText != null)
{
WeightText.text = $"{ItemUI.weight} Lbs";
}
if(ShortDescriptionText != null)
{
ShortDescriptionText.text = $"{ItemUI.shortDescription}";
}
}
// Update is called once per frame
void Update()
{
}
}
}