| | |
| | | {
|
| | | if (PlayerDatas.Instance.baseData.IsActive90Off)
|
| | | {
|
| | | return m_Percentage*10;
|
| | | return m_Percentage*100;
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | public int mapRealmSelect; //地图境界难度
|
| | | public int leaveFamilyTime; //离开家族时间
|
| | |
|
| | | public bool IsActive90Off; //折扣 越南0.1折默认激活
|
| | | public bool IsActive90Off = true; //折扣 越南0.1折默认激活
|
| | |
|
| | | public long treasurePotentialSp
|
| | | {
|
| | |
| | | Text buyBtnTxt; |
| | | ImageEx freeLock; |
| | | Image stateImg; |
| | | TextEx orgPrice; |
| | | |
| | | VipModel vipModel { get { return ModelCenter.Instance.GetModelEx<VipModel>(); } } |
| | | protected override void Awake() |
| | |
| | | for (int i = 0; i < 2; i++) |
| | | { |
| | | items.Add(proxy.GetWidgtEx<ItemCell>("ItemCell" + i)); |
| | | } |
| | | |
| | | }
|
| | | var obj = buyBtn.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx; |
| | | } |
| | | |
| | | public void Display(int index) |
| | |
| | | }); |
| | | OrderInfoConfig config; |
| | | vipModel.TryGetOrderInfo(ctgID, out config); |
| | | buyBtnTxt.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((int)config.PayRMBNum)); |
| | | buyBtnTxt.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((int)config.PayRMBNum));
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(config.m_PayRMBNum));
|
| | | } |
| | | |
| | | freeLock.SetActiveIL(false); |
| | | stateImg.SetActiveIL(rechargeCount.todayCount != 0); |
| | | |
| | |
| | | Image m_State; |
| | | Text m_Price; |
| | | ScrollerController m_ScrollControl; |
| | | |
| | | TextEx orgPrice; |
| | | |
| | | #region Built-in |
| | | protected override void BindController() |
| | |
| | | m_State = proxy.GetWidgtEx<Image>("state"); |
| | | |
| | | m_Price = proxy.GetWidgtEx<Text>("price"); |
| | | m_ScrollControl = proxy.GetWidgtEx<ScrollerController>("Scroller"); |
| | | m_ScrollControl = proxy.GetWidgtEx<ScrollerController>("Scroller");
|
| | |
|
| | | var obj = m_Invest.FindComponent("Text", "GameObject/Txt_orgPrice"); |
| | | if (obj != null) |
| | | orgPrice = obj as TextEx; |
| | | } |
| | | |
| | | protected override void AddListeners() |
| | |
| | | }); |
| | | var orderInfoId = InvestModel.Instance.GetOrderInfoId(InvestModel.Instance.selectType); |
| | | var config = OrderInfoConfig.Get(orderInfoId); |
| | | m_Price.text = Language.Get("MonthWeekPrice", UIHelper.GetMoneyFormat((int)config.PayRMBNum)); |
| | | |
| | | m_Price.text = Language.Get("MonthWeekPrice", UIHelper.GetMoneyFormat((int)config.PayRMBNum));
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(config.m_PayRMBNum));
|
| | | } |
| | | } |
| | | |
| | | void DisplayInvests() |
| | |
| | | btnBuy = proxy.GetWidgtEx<ButtonEx>("btnBuy");
|
| | | imgBuy = proxy.GetWidgtEx<ImageEx>("imgBuy");
|
| | |
|
| | | var obj = btnBuy.FindComponent("TextEx", "Txt_orgPrice");
|
| | | var obj = btnBuy.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | }
|
| | |
| | | imgBuy.SetActiveIL(isBuyZhanLing);
|
| | | OrderInfoConfig orderCfg;
|
| | | vipModel.TryGetOrderInfo(CelestialStarTowerModel.Instance.ctgIdDict[3], out orderCfg);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", orderCfg.PayRMBNum);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(orderCfg.PayRMBNum));
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | |
| | | }
|
| | | else
|
| | | {
|
| | | var obj1 = btnBuyList[i].FindComponent("TextEx", "Txt_orgPrice");
|
| | | var obj1 = btnBuyList[i].FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj1 != null)
|
| | | orgPriceList.Add(obj1 as TextEx);
|
| | | }
|
| | |
| | | showLineList.Add(showItemImgList);
|
| | | }
|
| | |
|
| | | var obj = btnAllBuy.FindComponent("TextEx", "Txt_orgPrice");
|
| | | var obj = btnAllBuy.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgAllPrice = obj as TextEx;
|
| | | }
|
| | |
| | |
|
| | | OrderInfoConfig orderCfg;
|
| | | vipModel.TryGetOrderInfo(DailySpecialsModel.Instance.packRechargeIdList[0], out orderCfg);
|
| | | txtAllBuy.text = Language.Get("PriceBuy", orderCfg.PayRMBNum) + Language.Get("ItemOverdue102", DailySpecialsModel.Instance.maxDay);
|
| | | txtAllBuy.text = Language.Get("PriceBuy", UIHelper.GetMoneyFormat(orderCfg.PayRMBNum)) + Language.Get("ItemOverdue102", DailySpecialsModel.Instance.maxDay);
|
| | | txtRemaindays.text = Language.Get("TheRemainingNumberDays_Z", DailySpecialsModel.Instance.maxDay - (TimeUtility.ServerNow.Date - TimeUtility.GetTime(DailySpecialsModel.Instance.PackBuyTime).Date).Days);
|
| | | if (orgAllPrice != null)
|
| | | {
|
| | |
| | | {
|
| | | ctgID = DailySpecialsModel.Instance.ctgIdDict[i][0];
|
| | | vipModel.TryGetOrderInfo(ctgID, out orderCfg);
|
| | | txtBuyList[i].text = Language.Get("NeedMoney", orderCfg.PayRMBNum);
|
| | | txtBuyList[i].text = Language.Get("NeedMoney", UIHelper.GetMoneyFormat(orderCfg.PayRMBNum));
|
| | | txtHaveList[i].text = Language.Get("RealmPractice109");
|
| | | if (orgPriceList[i] != null)
|
| | | {
|
| | |
| | | Text Money; |
| | | Text moneyOnSale; |
| | | |
| | | TextEx orgPrice; |
| | | |
| | | VipModel vipModel { get { return ModelCenter.Instance.GetModelEx<VipModel>(); } } |
| | | FuncSysPrivilegeModel model = FuncSysPrivilegeModel.Instance; |
| | | #region Built-in |
| | |
| | | Toggle3 = proxy.GetWidgtEx<Toggle>("Toggle3"); |
| | | Toggle15 = proxy.GetWidgtEx<Toggle>("Toggle15"); |
| | | Money = proxy.GetWidgtEx<Text>("Money"); |
| | | moneyOnSale = proxy.GetWidgtEx<Text>("moneyOnSale"); |
| | | moneyOnSale = proxy.GetWidgtEx<Text>("moneyOnSale");
|
| | |
|
| | | var obj = Buy.FindComponent("Text", "Txt_orgPrice"); |
| | | if (obj != null) |
| | | orgPrice = obj as TextEx; |
| | | } |
| | | |
| | | protected override void AddListeners() |
| | |
| | | var index = Toggle1.isOn ? 0 : Toggle3.isOn ? 1 : 2; |
| | | OrderInfoConfig config; |
| | | vipModel.TryGetOrderInfo(model.BuyCountCTGID[index], out config); |
| | | Money.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((int)config.PayRMBNum)); |
| | | Money.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((int)config.PayRMBNum));
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(config.m_PayRMBNum));
|
| | | } |
| | | |
| | | vipModel.TryGetOrderInfo(model.DiscountCTGID, out config); |
| | | var discount = UIHelper.GetMoneyFormat((int)config.PayRMBNum); |
| | |
| | | btnBuy = proxy.GetWidgtEx<ButtonEx>("btnBuy");
|
| | | imgBuy = proxy.GetWidgtEx<ImageEx>("imgBuy");
|
| | |
|
| | | var obj = btnBuy.FindComponent("TextEx", "Txt_orgPrice");
|
| | | var obj = btnBuy.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | }
|
| | |
| | | imgBuyNow = proxy.GetWidgtEx<ImageEx>("imgBuyNow");
|
| | | imgTimeOutNow = proxy.GetWidgtEx<ImageEx>("imgTimeOutNow");
|
| | |
|
| | | var obj = btnBuyNow.FindComponent("TextEx", "Txt_orgPrice");
|
| | | var obj = btnBuyNow.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | }
|
| | |
| | | btnClose = proxy.GetWidgtEx<ButtonEx>("btnClose");
|
| | | btnBuy = proxy.GetWidgtEx<ButtonEx>("btnBuy");
|
| | | imgBuy = proxy.GetWidgtEx<ImageEx>("imgBuy");
|
| | | var obj = btnBuy.FindComponent("TextEx", "Txt_orgPrice");
|
| | | var obj = btnBuy.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | }
|
| | |
| | | imgBuy.SetActiveIL(isBuyZhanLing);
|
| | | OrderInfoConfig orderCfg;
|
| | | vipModel.TryGetOrderInfo(LvZhanlingModel.Instance.ctgIdDict[1], out orderCfg);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", orderCfg.PayRMBNum);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(orderCfg.PayRMBNum));
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | |
| | | Text title;
|
| | | Text timeText;
|
| | | Text saleInfo;
|
| | | TextEx orgPrice;
|
| | |
|
| | | VipModel vipModel { get { return ModelCenter.Instance.GetModelEx<VipModel>(); } }
|
| | |
|
| | |
| | | title = proxy.GetWidgtEx<Text>("title");
|
| | | timeText = proxy.GetWidgtEx<Text>("time");
|
| | | saleInfo = proxy.GetWidgtEx<Text>("saleinfo");
|
| | |
|
| | | var obj = Btn_Buy.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | |
| | | OrderInfoConfig config;
|
| | | vipModel.TryGetOrderInfo(ctgID, out config);
|
| | | buyText.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((int)config.PayRMBNum));
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(config.m_PayRMBNum));
|
| | | }
|
| | |
|
| | | title.text = CTGConfig.Get(ctgID).Title;
|
| | | saleInfo.text = Language.Get("SaleOffInfo02", NewGuyGiftModel.Instance.salePerInfo[NewGuyGiftModel.Instance.ctgIDs.IndexOf(ctgID)]);
|
| | | }
|
| | |
| | | btnBuy = proxy.GetWidgtEx<ButtonEx>("btnBuy");
|
| | | imgBuy = proxy.GetWidgtEx<ImageEx>("imgBuy");
|
| | |
|
| | | var obj = btnBuy.FindComponent("TextEx", "Txt_orgPrice");
|
| | | var obj = btnBuy.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | }
|
| | |
| | | imgBuy.SetActiveIL(isBuyZhanLing);
|
| | | OrderInfoConfig orderCfg;
|
| | | vipModel.TryGetOrderInfo(RealmLVZhanlingModel.Instance.ctgIdDict[2], out orderCfg);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", orderCfg.PayRMBNum);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(orderCfg.PayRMBNum));
|
| | |
|
| | | if (orgPrice != null)
|
| | | {
|
| | |
| | | ttlbpcell = proxy.GetWidgtEx<Transform>("ttlbpcell"); |
| | | scoreLimit = proxy.GetWidgtEx<Text>("scoreLimit");
|
| | |
|
| | | var obj = buyTTL.FindComponent("TextEx", "Txt_orgPrice"); |
| | | var obj = buyTTL.FindComponent("Text", "Txt_orgPrice"); |
| | | if (obj != null) |
| | | orgPrice = obj as TextEx; |
| | | } |
| | |
| | | {
|
| | | OrderInfoConfig orderConfig; |
| | | vipModel.TryGetOrderInfo(TTLBattlePassModel.Instance.ttlCTGID, out orderConfig); |
| | | (buyTTL.FindComponent("TextEx", "TextEx") as TextEx).text = Language.Get("PriceBuy", orderConfig.PayRMBNum);
|
| | | (buyTTL.FindComponent("TextEx", "TextEx") as TextEx).text = Language.Get("PriceBuy", UIHelper.GetMoneyFormat(orderCfg.PayRMBNum));
|
| | |
|
| | | if (orgPrice != null) |
| | | {
|
| | |
| | |
|
| | | protected override void BindController()
|
| | | {
|
| | | var obj = btnBuy.FindComponent("TextEx", "Txt_orgPrice");
|
| | | var obj = btnBuy.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | }
|
| | |
| | | {
|
| | | OrderInfoConfig orderCfg;
|
| | | vipModel.TryGetOrderInfo(blessedLandModel.rechargeIDListForActivatingTreasureBowlArr[blessedLandModel.cornucopiaIndex][0], out orderCfg);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", orderCfg.PayRMBNum.ToString());
|
| | | txtBuy.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(orderCfg.PayRMBNum));
|
| | |
|
| | | if (orgPrice != null)
|
| | | {
|
| | |
| | | [SerializeField] Image haveYetImg; |
| | | [SerializeField] ImageEx ImgSale; |
| | | int girdIndex = 0; |
| | | TextEx orgPrice; |
| | | |
| | | CustomizedGiftModel model { get { return ModelCenter.Instance.GetModel<CustomizedGiftModel>(); } }
|
| | | CustomizedRechargeModel crModel { get { return ModelCenter.Instance.GetModel<CustomizedRechargeModel>(); } }
|
| | |
| | | OrderInfoConfig orderConfig;
|
| | | vipModel.TryGetOrderInfo(ctgID, out orderConfig);
|
| | | priceText.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((long)orderConfig.PayRMBNum));
|
| | |
|
| | | var obj = buyBtn.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | |
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(orderConfig.m_PayRMBNum));
|
| | | }
|
| | |
|
| | | } |
| | | }
|
| | |
|
| | |
| | | [SerializeField] Button buyBtn; |
| | | [SerializeField] ImageEx buyImg; |
| | | [SerializeField] TextEx buyTxt; |
| | | TextEx orgPrice; |
| | | |
| | | ExclusiveBenefitModel model { get { return ModelCenter.Instance.GetModel<ExclusiveBenefitModel>(); } } |
| | | VipModel vipModel { get { return ModelCenter.Instance.GetModel<VipModel>(); } } |
| | | PackModel packModel { get { return ModelCenter.Instance.GetModelEx<PackModel>(); } } |
| | | protected override void BindController() |
| | | { |
| | | {
|
| | | var obj = buyBtn.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx; |
| | | } |
| | | |
| | | protected override void AddListeners() |
| | |
| | | OrderInfoConfig orderConfig;
|
| | | vipModel.TryGetOrderInfo(ctgid, out orderConfig);
|
| | | buyTxt.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((long)orderConfig.PayRMBNum));
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(orderConfig.m_PayRMBNum));
|
| | | }
|
| | |
|
| | | buyBtn.SetActive(!model.IsBuy());
|
| | | buyImg.SetActive(model.IsBuy());
|
| | | buyBtn.SetListener(() =>
|
| | |
| | |
|
| | | protected override void BindController() |
| | | {
|
| | | var obj = btnBuy.FindComponent("TextEx", "Txt_orgPrice");
|
| | | var obj = btnBuy.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | } |
| | |
| | | return;
|
| | | OrderInfoConfig orderCfg;
|
| | | vipModel.TryGetOrderInfo(holiday.awardExCTGID, out orderCfg);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", orderCfg.PayRMBNum);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(orderCfg.PayRMBNum));
|
| | | if (orgPrice != null) |
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | |
| | |
|
| | | protected override void BindController() |
| | | {
|
| | | var obj = btnBuy.FindComponent("TextEx", "Txt_orgPrice");
|
| | | var obj = btnBuy.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | } |
| | |
| | | imgBuy.SetActiveIL(isBuyZhanLing);
|
| | | OrderInfoConfig orderCfg;
|
| | | vipModel.TryGetOrderInfo(fairyAffinityZhanLingModel.ctgIdDict[fairyAffinityZhanLingModel.ZhanLingType], out orderCfg);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", orderCfg.PayRMBNum);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(orderCfg.PayRMBNum));
|
| | |
|
| | | if (orgPrice != null) |
| | | {
|
| | |
| | | [SerializeField] Image imgProfitRatio;
|
| | | [SerializeField] Text txtProfitRatio;
|
| | |
|
| | | TextEx orgPrice;
|
| | |
|
| | | FairyAffinityRechargeGiftActModel model { get { return ModelCenter.Instance.GetModel<FairyAffinityRechargeGiftActModel>(); } }
|
| | | VipModel vipModel { get { return ModelCenter.Instance.GetModel<VipModel>(); } } |
| | | |
| | |
| | | vipModel.TryGetOrderInfo(ctgID, out orderConfig); |
| | | imgProfitRatio.SetActive(orderConfig != null); |
| | | priceText.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((long)orderConfig.PayRMBNum)); |
| | | txtProfitRatio.text = Language.Get("BlessedLand039", ctgConfig.Percentage); |
| | | txtProfitRatio.text = Language.Get("BlessedLand039", ctgConfig.Percentage);
|
| | |
|
| | | var obj = buyBtn.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | if (orgPrice != null) |
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(orderConfig.m_PayRMBNum));
|
| | | } |
| | | } |
| | | |
| | | private void DisplayStore(StoreConfig storeConfig)
|
| | |
| | |
|
| | | protected override void BindController()
|
| | | {
|
| | | var obj = btnBuy.FindComponent("TextEx", "Txt_orgPrice");
|
| | | var obj = btnBuy.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | }
|
| | |
| | | imgBuy.SetActiveIL(isBuyZhanLing);
|
| | | OrderInfoConfig orderCfg;
|
| | | vipModel.TryGetOrderInfo(model.ctgIdDict[model.ZhanLingType], out orderCfg);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", orderCfg.PayRMBNum);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(orderCfg.PayRMBNum));
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | |
| | | public event Action onDayGoodsUpdate; |
| | | public override void Init() |
| | | { |
| | | PlayerDatas.Instance.playerDataRefreshEvent += OnPlayerDataRefreshEvent; |
| | | OpenServerActivityCenter.Instance.Register(23, this); |
| | | ParseConfig(); |
| | | } |
| | |
| | | |
| | | public override void UnInit() |
| | | { |
| | | PlayerDatas.Instance.playerDataRefreshEvent -= OnPlayerDataRefreshEvent; |
| | | } |
| | | public void OnPlayerLoginOk() |
| | | { |
| | |
| | | |
| | | }
|
| | |
|
| | | void OnPlayerDataRefreshEvent(PlayerDataType type)
|
| | | {
|
| | | if (type == PlayerDataType.LV2)
|
| | | {
|
| | | //一折之后需要刷新变化
|
| | | ParseConfig();
|
| | |
|
| | | if (PlayerDatas.Instance.baseData.IsActive90Off)
|
| | | { |
| | | foreach (var item in m_RechargeDict)
|
| | | {
|
| | | OrderInfoConfig orderInfo = null;
|
| | | vipModel.TryGetOrderInfoByOrderInfo(item.Value.orderInfo, out orderInfo);
|
| | | if (orderInfo != null)
|
| | | {
|
| | | item.Value.money = orderInfo.PayRMBNum;
|
| | | }
|
| | | item.Value.onSalePer = item.Value.onSalePer * 10;
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | void ParseConfig()
|
| | | {
|
| | |
| | | |
| | | public void DayGoodsInfo(HAA25_tagMCDailyGiftbagInfo pack) |
| | | { |
| | | ParseConfig(); |
| | | |
| | | recordIDs = new List<int>(); |
| | | foreach (var goods in pack.GiftbagInfo) |
| | | { |
| | |
| | | orderInfo = goods.OrderInfo, |
| | | items = tmpItems, |
| | | buyCountLimit = (int)goods.BuyCountLimit, |
| | | onSalePer = PlayerDatas.Instance.baseData.IsActive90Off ? goods.Discount * 10 : goods.Discount, |
| | | onSalePer = PlayerDatas.Instance.baseData.IsActive90Off ? goods.Discount * 100 : goods.Discount, |
| | | }; |
| | | |
| | | |
| | |
| | | [SerializeField] Text m_Cost;
|
| | | [SerializeField] Button m_CloseBtn;
|
| | | [SerializeField] Button m_RechargeBtn;
|
| | | TextEx orgPrice;
|
| | |
|
| | |
|
| | | VipModel m_Model;
|
| | | VipModel model
|
| | |
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | | var obj = m_RechargeBtn.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | |
| | | return;
|
| | | }
|
| | | m_Cost.text = Language.Get("RechargeBoxWin1", UIHelper.GetMoneyFormat((int)model.GetPayRmb(_config.RecordID)));
|
| | |
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((int)model.GetOrgPayRmb(_config.RecordID)));
|
| | | }
|
| | |
|
| | | var _list = model.m_RechargeGainItemDict[model.presentSelectRechargeId];
|
| | | for (int i = 0; i < m_Items.Length; i++)
|
| | | {
|
| | |
| | |
|
| | | [SerializeField] List<ButtonEx> goods = new List<ButtonEx>();
|
| | | [SerializeField] Button closeBtn;
|
| | | TextEx orgPrice;
|
| | |
|
| | | VipModel model { get { return ModelCenter.Instance.GetModel<VipModel>(); } }
|
| | | MultiRechargeModel multiRechargeModel
|
| | |
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | | var obj = m_RechargeBtn.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | |
| | | var config = CTGConfig.Get(ctgID);
|
| | |
|
| | | m_MoneyCount.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((int)model.GetPayRmb(config.RecordID)));
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((int)model.GetOrgPayRmb(config.RecordID)));
|
| | | }
|
| | |
|
| | | m_GainJade.text = config.GainGold.ToString();
|
| | | bool _firstRecharge = true;
|
| | | VipModel.RechargeCount _rechargeCount;
|
| | |
| | | [SerializeField] Button m_Get;
|
| | | [SerializeField] Image m_State;
|
| | | [SerializeField] Button m_Close;
|
| | |
|
| | | [SerializeField] Text m_Percentage;
|
| | | TextEx orgPrice;
|
| | |
|
| | |
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | | var obj = m_Invest.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | |
| | | var config = OrderInfoConfig.Get(orderInfoId);
|
| | | m_Price.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((int)config.PayRMBNum));
|
| | |
|
| | |
|
| | | m_Percentage.text = CTGConfig.Get(config.CTGID).Percentage.ToString() + "%";
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(config.m_PayRMBNum));
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | |
| | | [SerializeField] Text m_Diamond;
|
| | | [SerializeField] Transform m_CompleteSymbol;
|
| | | [SerializeField] ScrollerController m_ScrollControl;
|
| | | TextEx orgPrice;
|
| | |
|
| | | MonthWeekInvestModel model { get { return ModelCenter.Instance.GetModel<MonthWeekInvestModel>(); } }
|
| | |
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | | var obj = m_Invest.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | |
| | | var orderInfoId = model.GetOrderInfoId(model.selectType);
|
| | | var config = OrderInfoConfig.Get(orderInfoId);
|
| | | m_Price.text = Language.Get("MonthWeekPrice", UIHelper.GetMoneyFormat((int)config.PayRMBNum));
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(config.m_PayRMBNum));
|
| | | }
|
| | |
|
| | | m_InvestLabel.text = Language.Get("MonthWeekInvestFunc_" + model.selectType);
|
| | |
|
| | | Image moneyImg = this.GetComponent<Image>("Container_Default/Img_TopBottom/Img_4");
|
| | |
| | | return 0;
|
| | | }
|
| | |
|
| | | public float GetOrgPayRmb(int _id)
|
| | | {
|
| | | var appid = VersionConfig.Get().appId;
|
| | | appid = m_CTGConfigDict.ContainsKey(appid) ? appid : m_CTGConfigDict.Keys.Last();
|
| | | var configs = OrderInfoConfig.GetValues();
|
| | | for (int i = 0; i < configs.Count; i++)
|
| | | {
|
| | | if (configs[i].AppId.Equals(appid)
|
| | | && configs[i].CTGID == _id)
|
| | | {
|
| | | return configs[i].m_PayRMBNum;
|
| | | }
|
| | | }
|
| | | return 0;
|
| | | }
|
| | |
|
| | |
|
| | | public void CTG(int _id)
|
| | | {
|
| | | OrderInfoConfig orderInfo = null;
|
| | |
| | | [SerializeField] Text m_GiftLimitTxt; |
| | | [SerializeField] Image m_StateImg; |
| | | [SerializeField] Button m_GetBtn; |
| | | [SerializeField] Text m_BtnTxt; |
| | | [SerializeField] Text m_BtnTxt;
|
| | | TextEx orgPrice; |
| | | |
| | | |
| | | CZBMModel model { get { return ModelCenter.Instance.GetModel<CZBMModel>(); } } |
| | | VipModel vipModel { get { return ModelCenter.Instance.GetModel<VipModel>(); } } |
| | |
| | | if (vipModel.TryGetOrderInfo(ctgID, out orderInfoConfig)) |
| | | { |
| | | m_BtnTxt.text = Language.Get("PriceBuy", UIHelper.GetMoneyFormat((int)orderInfoConfig.PayRMBNum)); |
| | | var obj = m_GetBtn.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | |
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(orderInfoConfig.m_PayRMBNum));
|
| | | } |
| | | m_GetBtn.SetListener(()=>{ |
| | | if (index != operation.CZBMGiftInfo[model.selectIndex].PlayerBuyIndex) |
| | | { |
| | |
| | | [SerializeField] ScrollerController m_SuccessLine; |
| | | [SerializeField] Button m_BuyBattelPass; |
| | | //[SerializeField] ImageEx m_BattelPassImg; |
| | | [SerializeField] Text Price; |
| | | [SerializeField] Text Price;
|
| | | TextEx orgPrice; |
| | | |
| | | AchievementModel model { get { return ModelCenter.Instance.GetModel<AchievementModel>(); } } |
| | | VipModel vipModel { get { return ModelCenter.Instance.GetModel<VipModel>(); } } |
| | | |
| | | #region Built-in |
| | | protected override void BindController() |
| | | { |
| | | {
|
| | | var obj = m_BuyBattelPass.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx; |
| | | } |
| | | |
| | | protected override void AddListeners() |
| | |
| | | private void ShowBuyButton() |
| | | { |
| | | m_BuyBattelPass.SetActive(!model.isBuyBP()); |
| | | Price.text = Language.Get("SuperValueGiftCost", UIHelper.GetMoneyFormat((int)vipModel.GetPayRmb(model.BPCTGID))); |
| | | Price.text = Language.Get("SuperValueGiftCost", UIHelper.GetMoneyFormat((int)vipModel.GetPayRmb(model.BPCTGID)));
|
| | |
|
| | | if (orgPrice != null) |
| | | { |
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off); |
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((int)vipModel.GetOrgPayRmb(model.BPCTGID))); |
| | | } |
| | | } |
| | | |
| | | // 获取最靠前的可领取 |
| | |
| | | [SerializeField] TextEx txtTitle;
|
| | | [SerializeField] ImageEx imgBK;
|
| | | [SerializeField] TextEx txtPercentage;
|
| | | TextEx orgPrice;
|
| | |
|
| | | VipModel vipModel { get { return ModelCenter.Instance.GetModel<VipModel>(); } }
|
| | | ZhanLingHBuyModel model { get { return ModelCenter.Instance.GetModel<ZhanLingHBuyModel>(); } }
|
| | | int ctgID;
|
| | |
|
| | | protected override void BindController()
|
| | | {
|
| | | var obj = btnBuy.FindComponent("Text", "Txt_orgPrice");
|
| | | if (obj != null)
|
| | | orgPrice = obj as TextEx;
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | | {
|
| | |
| | | txtTitle.text = CTGConfig.Get(ctgID).Title;
|
| | | txtPercentage.text = Language.Get("BlessedLand039", CTGConfig.Get(ctgID).Percentage);
|
| | | txtBuy.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat((long)orderCfg.PayRMBNum));
|
| | |
|
| | | if (orgPrice != null)
|
| | | {
|
| | | orgPrice.SetActiveIL(PlayerDatas.Instance.baseData.IsActive90Off);
|
| | | orgPrice.text = Language.Get("PayMoneyNum", UIHelper.GetMoneyFormat(orderCfg.m_PayRMBNum));
|
| | | }
|
| | | }
|
| | |
|
| | | void CreateScroller()
|
| | |
| | | {
|
| | | var _cell = cell as ZhanLingHBuyCell;
|
| | | _cell.Display(_cell.index);
|
| | | }
|
| | |
|
| | | protected override void BindController()
|
| | | {
|
| | |
|
| | | }
|
| | |
|
| | | protected override void OnAfterClose()
|