private void OnGoldBalanceChanged(NetCache.NetCacheGoldBalance balance) { if (this.m_showingCurrency == CurrencyType.GOLD) { this.SetAmount(balance.GetTotal()); } }
private void SetUpBuyWithGoldButton() { string text = string.Empty; NoGTAPPTransactionData noGTAPPTransactionData = new NoGTAPPTransactionData { Product = ProductType.PRODUCT_TYPE_DRAFT, ProductData = 0, Quantity = 1 }; long goldCostNoGTAPP = StoreManager.Get().GetGoldCostNoGTAPP(noGTAPPTransactionData); if (goldCostNoGTAPP > 0L) { this.m_goldTransactionData = noGTAPPTransactionData; text = goldCostNoGTAPP.ToString(); NetCache.NetCacheGoldBalance netObject = NetCache.Get().GetNetObject <NetCache.NetCacheGoldBalance>(); this.UpdateGoldButtonState(netObject); } else { Debug.LogWarning("ForgeStore.SetUpBuyWithGoldButton(): no gold price for purchase Arena without GTAPP"); text = GameStrings.Get("GLUE_STORE_PRODUCT_PRICE_NA"); base.SetGoldButtonState(Store.BuyButtonState.DISABLED); } base.m_buyWithGoldButton.SetText(text); }
private void SetUpBuyWithGoldButton() { string text = string.Empty; if (this.m_bundle != null) { text = this.m_bundle.GoldCost.ToString(); NetCache.NetCacheGoldBalance netObject = NetCache.Get().GetNetObject <NetCache.NetCacheGoldBalance>(); this.UpdateGoldButtonState(netObject); } else { Debug.LogWarning("AdventureStore.SetUpBuyWithGoldButton(): m_bundle is null"); text = GameStrings.Get("GLUE_STORE_PRODUCT_PRICE_NA"); base.SetMoneyButtonState(Store.BuyButtonState.DISABLED); } base.m_buyWithGoldButton.SetText(text); }
public override void OnGoldBalanceChanged(NetCache.NetCacheGoldBalance balance) { this.UpdateGoldButtonState(balance); }
public void OnGoldBalanceChanged(NetCache.NetCacheGoldBalance balance) { object[] objArray1 = new object[] { balance }; base.method_8("OnGoldBalanceChanged", objArray1); }
public void UpdateGoldButtonState(NetCache.NetCacheGoldBalance balance) { object[] objArray1 = new object[] { balance }; base.method_8("UpdateGoldButtonState", objArray1); }
public void UpdateGoldButtonState(NetCache.NetCacheGoldBalance balance) { Class272.Enum20[] enumArray1 = new Class272.Enum20[] { Class272.Enum20.Class }; object[] objArray1 = new object[] { balance }; base.method_9("UpdateGoldButtonState", enumArray1, objArray1); }