|
|
|
|
|
|
_currentItem = itemStack; |
|
|
|
|
|
|
|
_imgSelected.gameObject.SetActive(isSelected); |
|
|
|
if(itemStack.Item.IsLocalized) |
|
|
|
if (itemStack.Item.IsLocalized) |
|
|
|
_bgLocalizedImage.AssetReference = itemStack.Item.LocalizePreviewImage; |
|
|
|
_bgLocalizedImage.AssetReference = itemStack.Item.LocalizePreviewImage; |
|
|
|
_bgLocalizedImage.enabled = false; |
|
|
|
_itemPreviewImage.sprite = itemStack.Item.PreviewImage; |
|
|
|
_bgLocalizedImage.enabled = false; |
|
|
|
_itemPreviewImage.sprite = itemStack.Item.PreviewImage; |
|
|
|
} |
|
|
|
_itemCount.text = itemStack.Amount.ToString(); |
|
|
|
_bgImage.color = itemStack.Item.ItemType.TypeColor; |
|
|
|