private void _viewGemTab() { SetActive(gemTab, true); SetActive(bundleTab, false); SetActive(materialTab, false); CheckOpenedGemTab(); int j = 0; SetTable(gemTab, UI.TBL_LIST, "CrystalShopListItem", _purchaseGemList.Count, false, delegate(int i, Transform p) { ProductData productData2 = _purchaseGemList[j]; if (MonoBehaviourSingleton <GlobalSettingsManager> .I.packParam.HasSpecial(productData2.productId)) { return(Realizes("CrystalShopListItem2", p, true)); } return(null); }, delegate(int i, Transform t, bool b) { ProductData productData = _purchaseGemList[++j]; SetSprite(t, UI.SPR_THUMB, productData.iconImg); SetLabelText(t, UI.LBL_NAME, productData.name); SetLabelText(t, UI.LBL_PRICE, string.Format(base.sectionData.GetText("PRICE"), productData.priceIncludeTax)); SetSupportEncoding(t, UI.LBL_PROMO, true); SetLabelText(t, UI.LBL_PROMO, productData.promo.Replace("\\n", "\n")); if (productData.remainingDay > 0) { SetActive(t, UI.SPR_SOLD, true); SetActive(t, UI.SPR_SOLD_MASK, true); } else { SetActive(t, UI.SPR_SOLD, false); SetActive(t, UI.SPR_SOLD_MASK, false); if (productData.offerType > 0) { UITexture spro = FindCtrl(t, UI.OBJ_OFFER).GetComponent <UITexture>(); ResourceLoad.LoadShopImageGemOfferTexture(spro, (uint)productData.offerType, delegate(Texture tex) { if (spro != null) { spro.mainTexture = tex; } }); } } if (_nativeStoreList != null) { StoreData product = _nativeStoreList.getProduct(productData.productId); if (product != null) { SetLabelText(t, UI.LBL_PRICE, product.price.ToString()); } } SetEvent(t, "BUY", i); }); }