You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
805 B
28 lines
805 B
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using Unity.Collections.LowLevel.Unsafe;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.U2D;
|
|
|
|
/// <summary>
|
|
/// List version of the view item container. Does not feature an info panel
|
|
/// </summary>
|
|
public class ViewItemContainerList : ViewItemContainer
|
|
{
|
|
public override bool IsSelected {
|
|
get => highLight.gameObject.activeSelf;
|
|
set => highLight.SetActive(value);
|
|
}
|
|
|
|
private ViewItemInfoPanel itemInfo;
|
|
|
|
protected override void OnInitialize(Item item, ShopModel owner)
|
|
{
|
|
// We just use the automatic component based item info panel stuff per-item here!
|
|
itemInfo = GetComponent<ViewItemInfoPanel>();
|
|
itemInfo?.SetItemInfo(item,owner);
|
|
}
|
|
}
|
|
|