【新副本界面】等级提示错误修复
parent
dc4fbe89e5
commit
3eee03aca7
|
@ -272,7 +272,7 @@ end
|
||||||
function CarbonsPanel:BtnClick(id)
|
function CarbonsPanel:BtnClick(id)
|
||||||
if id == FUNCTION_OPEN_TYPE.DAILYCHALLENGE_COIN then
|
if id == FUNCTION_OPEN_TYPE.DAILYCHALLENGE_COIN then
|
||||||
if ActTimeCtrlManager.SingleFuncState(id) == false then --如果未解锁
|
if ActTimeCtrlManager.SingleFuncState(id) == false then --如果未解锁
|
||||||
PopupTipPanel.ShowTip(ActTimeCtrlManager.SystemOpenTip(FUNCTION_OPEN_TYPE.DAILYCHALLENGE_COIN))
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.SystemOpenTip(id))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
UIManager.OpenPanel(UIName.DailyCarbonPanel)
|
UIManager.OpenPanel(UIName.DailyCarbonPanel)
|
||||||
|
@ -294,13 +294,13 @@ function CarbonsPanel:BtnClick(id)
|
||||||
JumpManager.GoJump(64001)
|
JumpManager.GoJump(64001)
|
||||||
end
|
end
|
||||||
NetManager.TreasureOfHeavenScoreRequest()
|
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)
|
CheckRedPointStatus(RedPointType.OrdinaryExplore)
|
||||||
else
|
else
|
||||||
if ActTimeCtrlManager.IsQualifiled(id) then
|
if ActTimeCtrlManager.IsQualifiled(id) then
|
||||||
PopupTipPanel.ShowTip(Language[12183])
|
PopupTipPanel.ShowTip(Language[12183])
|
||||||
else
|
else
|
||||||
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.EXPEDITION))
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(id))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-- elseif id == FUNCTION_OPEN_TYPE.CARDELAY then
|
-- elseif id == FUNCTION_OPEN_TYPE.CARDELAY then
|
||||||
|
@ -331,7 +331,7 @@ function CarbonsPanel:BtnClick(id)
|
||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
if not ActTimeCtrlManager.IsQualifiled(id) then
|
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]))
|
PopupTipPanel.ShowTip(string.format(Language[10279],config.OpenRules[2]))
|
||||||
else
|
else
|
||||||
PopupTipPanel.ShowTip(Language[10280])
|
PopupTipPanel.ShowTip(Language[10280])
|
||||||
|
@ -342,13 +342,13 @@ function CarbonsPanel:BtnClick(id)
|
||||||
CarbonManager.difficulty = 1
|
CarbonManager.difficulty = 1
|
||||||
UIManager.OpenPanel(UIName.XuanYuanMirrorPanel)
|
UIManager.OpenPanel(UIName.XuanYuanMirrorPanel)
|
||||||
else
|
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]))
|
PopupTipPanel.ShowTip(string.format(Language[10279],config.OpenRules[2]))
|
||||||
end
|
end
|
||||||
elseif id == FUNCTION_OPEN_TYPE.ENDLESS then
|
elseif id == FUNCTION_OPEN_TYPE.ENDLESS then
|
||||||
if ActTimeCtrlManager.IsQualifiled(id) then
|
if ActTimeCtrlManager.IsQualifiled(id) then
|
||||||
if ActTimeCtrlManager.SingleFuncState(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)
|
PlayerPrefs.SetInt("WuJin1"..PlayerManager.uid,serData.endTime)
|
||||||
CheckRedPointStatus(RedPointType.EndlessPanel)
|
CheckRedPointStatus(RedPointType.EndlessPanel)
|
||||||
MapManager.curCarbonType = CarBonTypeId.ENDLESS
|
MapManager.curCarbonType = CarBonTypeId.ENDLESS
|
||||||
|
@ -359,13 +359,13 @@ function CarbonsPanel:BtnClick(id)
|
||||||
PopupTipPanel.ShowTip(Language[10281])
|
PopupTipPanel.ShowTip(Language[10281])
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(FUNCTION_OPEN_TYPE.TRIAL))
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.GetFuncTip(id))
|
||||||
end
|
end
|
||||||
elseif id == FUNCTION_OPEN_TYPE.FIGHTLEVEL then
|
elseif id == FUNCTION_OPEN_TYPE.FIGHTLEVEL then
|
||||||
if ActTimeCtrlManager.SingleFuncState(id) then
|
if ActTimeCtrlManager.SingleFuncState(id) then
|
||||||
UIManager.OpenPanel(UIName.FightLevelChapterPanel)
|
UIManager.OpenPanel(UIName.FightLevelChapterPanel)
|
||||||
else
|
else
|
||||||
PopupTipPanel.ShowTip(ActTimeCtrlManager.SystemOpenTip(FUNCTION_OPEN_TYPE.FIGHTLEVEL))
|
PopupTipPanel.ShowTip(ActTimeCtrlManager.SystemOpenTip(id))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue