From a22d0851a0caee2029cef790b255c99ba01900d8 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Tue, 27 Apr 2021 23:13:07 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8E=A8=E9=80=81=E7=A4=BC=E5=8C=85?= =?UTF-8?q?=E3=80=91=E6=8F=90=E7=A4=BA=E6=96=87=E5=AD=97=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UpGradePackage/UpGradePackagePanel.lua | 54 ++++++++++--------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua b/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua index 78f92abfa6..e998e8127b 100644 --- a/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua @@ -178,37 +178,41 @@ function this:Refresh() end Util.GetGameObject(self.gameObject,activityType[curType].comp):SetActive(true) - local level = 0 - if (PlayerManager.level)%10 == 8 then - level = PlayerManager.level - else - level = (math.floor(PlayerManager.level/10)-1)*10+8 - end + -- local level = 0 + -- if (PlayerManager.level)%10 == 8 then + -- level = PlayerManager.level + -- else + -- level = (math.floor(PlayerManager.level/10)-1)*10+8 + -- end rechargeNum= VipManager.GetChargedNum() if curType == 1 then - this.tip.text = Language[11937]..level..Language[12174] or "" + -- this.tip.text = Language[11937]..level..Language[12174] or "" + this.tip.text = string.format("恭喜您等级提升至%s级,我们为您准备了超值礼包,助您提升战力!!!",RechargeConfig[curGiftId].Desc) + -- elseif curType == 3 then + -- local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,93).Value + -- local num = tonumber(specialConfig) + -- local value = fightLevelConfig[FightPointPassManager.lastPassFightId].SortId + -- local value2 = GetLanguageStrById(ConfigManager.GetConfigDataByKey(ConfigName.MainLevelConfig,"SortId",math.floor(value/num)*num).Name) + -- this.tip.text =Language[11939]..value2..Language[11940] + -- elseif curType == 4 then + -- local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,92).Value + -- local str = string.split(specialConfig,"|") + -- local nums = string.split(str[1],"#") + -- local canGet = false + -- local value = MonsterCampManager.monsterWave + -- local value2 = 0 + -- if value <= tonumber(nums[#nums]) then + -- local temp = tonumber(nums[#nums]) - tonumber(nums[#nums-1]) + -- value2 = math.floor(value/temp) * temp + -- else + -- value2 = math.floor((value - tonumber(nums[#nums]))/tonumber(str[2]))* tonumber(str[2]) + tonumber(nums[#nums]) + -- end elseif curType == 3 then - local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,93).Value - local num = tonumber(specialConfig) - local value = fightLevelConfig[FightPointPassManager.lastPassFightId].SortId - local value2 = GetLanguageStrById(ConfigManager.GetConfigDataByKey(ConfigName.MainLevelConfig,"SortId",math.floor(value/num)*num).Name) - this.tip.text =Language[11939]..value2..Language[11940] + this.tip.text = string.format("恭喜通关当前关卡,我们为您准备了超值礼包,助您战力飙升") elseif curType == 4 then - local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,92).Value - local str = string.split(specialConfig,"|") - local nums = string.split(str[1],"#") - local canGet = false - local value = MonsterCampManager.monsterWave - local value2 = 0 - if value <= tonumber(nums[#nums]) then - local temp = tonumber(nums[#nums]) - tonumber(nums[#nums-1]) - value2 = math.floor(value/temp) * temp - else - value2 = math.floor((value - tonumber(nums[#nums]))/tonumber(str[2]))* tonumber(str[2]) + tonumber(nums[#nums]) - end - this.tip.text =Language[11941]..value2..Language[11942] + this.tip.text = string.format("恭喜您击败心魔挑战成功,我们为您准备了超值礼包,帮助您击杀心魔快速通关!") else this.tip.text = "" end