private void InitUI(LTChargeLimitTimeGiftData itemData) { if (itemData != null) { Data = itemData; EB.Sparx.Hub.Instance.WalletManager.GetGiftItem(Data.PaymentId, out curChargeData); DiscountLab.text = LTChargeManager.GetDiscountTextEx(curChargeData.discount); DiscountLab.transform.parent.gameObject.CustomSetActive(curChargeData.discount > 0); PriceValueLab.text = curChargeData.localizedCost; DescriptLab.text = curChargeData.localizedDesc; InitChargeShowData(); InitTimeLabel(); controller.gameObject.CustomSetActive(true); } }
public override void SetMenuData(object param) { base.SetMenuData(param); Data = (LTChargeLimitTimeGiftData)param; InitUI(Data); }