public void ShowItemPopup(MarketplaceScreenController.MarketplaceItemData itemData, Sprite itemIcon, MarketplaceItemLockStates lockStates)
 {
     Service.Get <BackButtonController>().Add(onBackButtonClicked);
     if (adPopup.gameObject.activeSelf)
     {
         adPopup.gameObject.SetActive(value: false);
     }
     base.gameObject.SetActive(value: true);
     itemPopup.gameObject.SetActive(value: true);
     itemPopup.GetComponent <MarketplaceItemPopup>().SetData(itemData, itemIcon, lockStates);
 }
 public void SetData(MarketplaceScreenController.MarketplaceItemData itemData, Sprite itemIcon, MarketplaceItemLockStates lockStates)
 {
     localizer = Service.Get <Localizer>();
     ListBuyCountItem.SetActive(value: false);
     ItemIcon.sprite     = itemIcon;
     ListHeaderText.text = localizer.GetTokenTranslation(itemData.PropDefn.Name);
     ListLevelText.text  = itemData.UnlockLevel.ToString();
     if (lockStates.IsMemberLocked)
     {
         LockIcon.SetActive(value: true);
         LearnMoreButton.SetActive(value: true);
         HeaderText.text      = localizer.GetTokenTranslation("Marketplace.Member.Text");
         DescriptionText.text = localizer.GetTokenTranslation("Marketplace.MemberDesc.Text");
     }
     else if (lockStates.IsOutOfStock)
     {
         ListBuyCountItem.SetActive(value: false);
         HeaderText.text      = localizer.GetTokenTranslation("Marketplace.Stock.Text");
         DescriptionText.text = localizer.GetTokenTranslation("Marketplace.StockDesc.Text");
     }
     else if (lockStates.IsLevelLocked)
     {
         string text = itemData.UnlockLevel.ToString();
         HeaderText.text      = localizer.GetTokenTranslation("Marketplace.Level.Text") + text;
         DescriptionText.text = localizer.GetTokenTranslation("Marketplace.LevelDesc.Text");
     }
     if (!lockStates.IsLevelLocked && itemData.UnlockLevel == 0)
     {
         ListLevelItem.SetActive(value: false);
     }
 }