Пример #1
0
        private bool OnGetSkillPointExchangeInfoRsp(GetSkillPointExchangeInfoRsp rsp)
        {
            PlayerSkillPointExchangeInfo info = new PlayerSkillPointExchangeInfo {
                usableTimes   = (int)rsp.get_usable_times(),
                totalTimes    = (int)rsp.get_total_times(),
                hcoinCost     = (int)rsp.get_hcoin_cost(),
                skillPointGet = (int)rsp.get_skill_point_get()
            };

            this.playerData.skillPointExchangeCache.Value = info;
            return(false);
        }
        protected override bool SetupView()
        {
            PlayerSkillPointExchangeInfo info = Singleton <PlayerModule> .Instance.playerData.skillPointExchangeCache.Value;

            this._nextRecoverTimeText = base.view.transform.Find("Dialog/Content/SkillPtInfo/RecoverTimeText").GetComponent <Text>();
            this.SetupSkillPtInfo();
            object[] replaceParams = new object[] { info.usableTimes };
            base.view.transform.Find("Dialog/Content/DescText").GetComponent <Text>().text = LocalizationGeneralLogic.GetText("Menu_Desc_SkillPtExchange", replaceParams);
            base.view.transform.Find("Dialog/Content/Exchange/HCoinNumText").GetComponent <Text>().text   = info.hcoinCost.ToString();
            base.view.transform.Find("Dialog/Content/Exchange/SkillPtNumText").GetComponent <Text>().text = info.skillPointGet.ToString();
            return(false);
        }