【新副本界面】等级提示错误修复

dev_chengFeng
ZhangBiao 2021-07-23 14:55:33 +08:00
parent dc4fbe89e5
commit 3eee03aca7
1 changed files with 8 additions and 8 deletions

View File

@ -272,7 +272,7 @@ end
function CarbonsPanel:BtnClick(id)
if id == FUNCTION_OPEN_TYPE.DAILYCHALLENGE_COIN then
if ActTimeCtrlManager.SingleFuncState(id) == false then --如果未解锁
PopupTipPanel.ShowTip(ActTimeCtrlManager.SystemOpenTip(FUNCTION_OPEN_TYPE.DAILYCHALLENGE_COIN))
PopupTipPanel.ShowTip(ActTimeCtrlManager.SystemOpenTip(id))
return
end
UIManager.OpenPanel(UIName.DailyCarbonPanel)
@ -294,13 +294,13 @@ function CarbonsPanel:BtnClick(id)
JumpManager.GoJump(64001)
end
NetManager.TreasureOfHeavenScoreRequest()
PlayerPrefs.SetInt(PlayerManager.uid.."ExpeditionRed",ActTimeCtrlManager.GetSerDataByTypeId(FUNCTION_OPEN_TYPE.EXPEDITION).endTime)
PlayerPrefs.SetInt(PlayerManager.uid.."ExpeditionRed",ActTimeCtrlManager.GetSerDataByTypeId(id).endTime)
CheckRedPointStatus(RedPointType.OrdinaryExplore)
else
if ActTimeCtrlManager.IsQualifiled(id) then
PopupTipPanel.ShowTip(Language[12183])
else
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.EXPEDITION))
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(id))
end
end
-- elseif id == FUNCTION_OPEN_TYPE.CARDELAY then
@ -331,7 +331,7 @@ function CarbonsPanel:BtnClick(id)
end)
else
if not ActTimeCtrlManager.IsQualifiled(id) then
local config = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.TRIAL)
local config = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,id)
PopupTipPanel.ShowTip(string.format(Language[10279],config.OpenRules[2]))
else
PopupTipPanel.ShowTip(Language[10280])
@ -342,13 +342,13 @@ function CarbonsPanel:BtnClick(id)
CarbonManager.difficulty = 1
UIManager.OpenPanel(UIName.XuanYuanMirrorPanel)
else
local config = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,FUNCTION_OPEN_TYPE.PEOPLE_MIRROR)
local config = ConfigManager.GetConfigData(ConfigName.GlobalSystemConfig,id)
PopupTipPanel.ShowTip(string.format(Language[10279],config.OpenRules[2]))
end
elseif id == FUNCTION_OPEN_TYPE.ENDLESS then
if ActTimeCtrlManager.IsQualifiled(id) then
if ActTimeCtrlManager.SingleFuncState(id) then
local serData = ActTimeCtrlManager.GetSerDataByTypeId(FUNCTION_OPEN_TYPE.ENDLESS)
local serData = ActTimeCtrlManager.GetSerDataByTypeId(id)
PlayerPrefs.SetInt("WuJin1"..PlayerManager.uid,serData.endTime)
CheckRedPointStatus(RedPointType.EndlessPanel)
MapManager.curCarbonType = CarBonTypeId.ENDLESS
@ -359,13 +359,13 @@ function CarbonsPanel:BtnClick(id)
PopupTipPanel.ShowTip(Language[10281])
end
else
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.TRIAL))
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(id))
end
elseif id == FUNCTION_OPEN_TYPE.FIGHTLEVEL then
if ActTimeCtrlManager.SingleFuncState(id) then
UIManager.OpenPanel(UIName.FightLevelChapterPanel)
else
PopupTipPanel.ShowTip(ActTimeCtrlManager.SystemOpenTip(FUNCTION_OPEN_TYPE.FIGHTLEVEL))
PopupTipPanel.ShowTip(ActTimeCtrlManager.SystemOpenTip(id))
end
end
end