【推送礼包】提示文字修改
parent
a357ae16d4
commit
a22d0851a0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue