【无尽副本】只有第一次完成任务会有光效,后续完成不会有

dev_chengFeng
jiaoyangna 2021-06-09 12:04:22 +08:00
parent c16b1124f8
commit 9a61e6b709
2 changed files with 10 additions and 4 deletions

View File

@ -702,6 +702,7 @@ function this.SetRewardData()
v.state = 0
elseif allMissionData[j].state == 1 then
-- goText.text="领取"
v.progress = v.value
v.state = allMissionData[j].state
elseif allMissionData[j].state == 0 then
-- goText.text="前往"
@ -712,6 +713,7 @@ function this.SetRewardData()
end
end
end
local typeIndex = {
[0] = 2,
[1] = 0,
@ -724,6 +726,9 @@ function this.SetRewardData()
return typeIndex[a.state] < typeIndex[b.state]
end
end)
CheckRedPointStatus(RedPointType.wujinMission)
CheckRedPointStatus(RedPointType.EndlessPanel)
return this.mission
end

View File

@ -208,7 +208,6 @@ function EndLessMapView:BindEvent()
-- end
UIManager.OpenPanel(UIName.GeneralBigPopup,GENERAL_POPUP_TYPE.WuJinShuXing,data)
end)
BindRedPointObject(RedPointType.wujinTreasure,this.endLessTreasureRed)
Util.AddClick(this.endLessTreasure, function ()
if ctrlView.GetCallListCount() > 1 then
PopupTipPanel.ShowTip(Language[11259])
@ -342,12 +341,14 @@ end
function EndLessMapView:OnShow()
if not this:IsEndLessMap() then return end
-- 避免其他界面打开时不刷新问题
-- 界面再次打开时,如果没有主动刷新过,则不需要刷新显示
--if not EndLessMapManager.isUpdateOnClose and not EndLessMapManager.openedFormat then
-- this:GetBagEnergy()
-- EndLessMapManager.isUpdateOnClose = false
--end
BindRedPointObject(RedPointType.wujinTreasure,this.endLessTreasureRed)
BindRedPointObject(RedPointType.wujinBianDui,this.btnFormatRed)
-- 如果全屏界面打开时刷新过,重新激活界面需要刷新一次
if EndLessMapManager.isUpdateOnClose then
@ -426,7 +427,6 @@ function EndLessMapView:RefreshTargetRoote()
-- 1 "领取"
-- 2 "前往"
this.curMission = EndLessMapManager.GetRewardData()
LogGreen(this.curMission.state.." this.curMission.state")
if this.curMission.state == 2 then
this.TargetBtn1.gameObject:SetActive(true) --未完成
this.TargetBtn2.gameObject:SetActive(false) --以达成
@ -748,6 +748,8 @@ function EndLessMapView:OnClose()
-- this.warn:SetActive(false)
Util.ClearChild(this.selectHeroGrid.transform)
ClearRedPointObject(RedPointType.wujinBianDui,this.btnFormatRed)
ClearRedPointObject(RedPointType.wujinTreasure,this.endLessTreasureRed)
ClearRedPointObject(RedPointType.wujinMission,this.btnNoteRed)
this.heroList = {}
this.isPanelClose = true
EndLessMapManager.isUpdateOnClose = false
@ -776,8 +778,7 @@ end
function EndLessMapView:OnDestroy()
this.spLoader:Destroy()
if not this:IsEndLessMap() then return end
ClearRedPointObject(RedPointType.wujinTreasure,this.endLessTreasureRed)
ClearRedPointObject(RedPointType.wujinMission,this.btnNoteRed)
end
return EndLessMapView