internal void SetPanel(ItemInstance itemInstance)
        {
            if (itemInstance != null)
            {
                this.itemInstance = itemInstance;
                ItemImage.sprite  = itemInstance.ItemTemplate.Icon;
                //ItemImage.color = tempColor;

                var itemColor = Color.black;
                switch (itemInstance.Quality)
                {
                case ItemQuality.Weak:
                    itemColor = WeakItemColor;
                    break;

                case ItemQuality.Regular:
                    itemColor = RegularItemColor;
                    break;

                case ItemQuality.Exceptional:
                    itemColor = ExceptionalItemColor;
                    break;

                case ItemQuality.Rare:
                    itemColor = RareItemColor;
                    break;

                case ItemQuality.Legend:
                    itemColor = LegendItemColor;
                    break;
                }

                //TitleText.color = itemColor;
                QualityText.color = itemColor;

                TitleText.text    = itemInstance.ItemTemplate.ItemName;
                DescText.text     = itemInstance.ItemTemplate.ItemDescription;
                LongDescText.text = itemInstance.ItemTemplate.ItemLongDescription;
                QualityText.text  = itemInstance.GetQualityText();
                StatsText.text    = itemInstance.GetStatsText(" {2}:<b>{1}{0}</b> ");



                UnequipButton.gameObject.SetActive(itemInstance.IsEquippable());
                UnequipButton.interactable = itemInstance.IsEquipped;
            }
            else
            {
                UnequipButton.gameObject.SetActive(false);
                UnequipButton.interactable = false;
            }
        }