【无尽副本】只有第一次完成任务会有光效,后续完成不会有
parent
c16b1124f8
commit
9a61e6b709
|
@ -702,6 +702,7 @@ function this.SetRewardData()
|
||||||
v.state = 0
|
v.state = 0
|
||||||
elseif allMissionData[j].state == 1 then
|
elseif allMissionData[j].state == 1 then
|
||||||
-- goText.text="领取"
|
-- goText.text="领取"
|
||||||
|
v.progress = v.value
|
||||||
v.state = allMissionData[j].state
|
v.state = allMissionData[j].state
|
||||||
elseif allMissionData[j].state == 0 then
|
elseif allMissionData[j].state == 0 then
|
||||||
-- goText.text="前往"
|
-- goText.text="前往"
|
||||||
|
@ -712,6 +713,7 @@ function this.SetRewardData()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local typeIndex = {
|
local typeIndex = {
|
||||||
[0] = 2,
|
[0] = 2,
|
||||||
[1] = 0,
|
[1] = 0,
|
||||||
|
@ -724,6 +726,9 @@ function this.SetRewardData()
|
||||||
return typeIndex[a.state] < typeIndex[b.state]
|
return typeIndex[a.state] < typeIndex[b.state]
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
CheckRedPointStatus(RedPointType.wujinMission)
|
||||||
|
CheckRedPointStatus(RedPointType.EndlessPanel)
|
||||||
return this.mission
|
return this.mission
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -208,7 +208,6 @@ function EndLessMapView:BindEvent()
|
||||||
-- end
|
-- end
|
||||||
UIManager.OpenPanel(UIName.GeneralBigPopup,GENERAL_POPUP_TYPE.WuJinShuXing,data)
|
UIManager.OpenPanel(UIName.GeneralBigPopup,GENERAL_POPUP_TYPE.WuJinShuXing,data)
|
||||||
end)
|
end)
|
||||||
BindRedPointObject(RedPointType.wujinTreasure,this.endLessTreasureRed)
|
|
||||||
Util.AddClick(this.endLessTreasure, function ()
|
Util.AddClick(this.endLessTreasure, function ()
|
||||||
if ctrlView.GetCallListCount() > 1 then
|
if ctrlView.GetCallListCount() > 1 then
|
||||||
PopupTipPanel.ShowTip(Language[11259])
|
PopupTipPanel.ShowTip(Language[11259])
|
||||||
|
@ -342,12 +341,14 @@ end
|
||||||
|
|
||||||
function EndLessMapView:OnShow()
|
function EndLessMapView:OnShow()
|
||||||
if not this:IsEndLessMap() then return end
|
if not this:IsEndLessMap() then return end
|
||||||
|
|
||||||
-- 避免其他界面打开时不刷新问题
|
-- 避免其他界面打开时不刷新问题
|
||||||
-- 界面再次打开时,如果没有主动刷新过,则不需要刷新显示
|
-- 界面再次打开时,如果没有主动刷新过,则不需要刷新显示
|
||||||
--if not EndLessMapManager.isUpdateOnClose and not EndLessMapManager.openedFormat then
|
--if not EndLessMapManager.isUpdateOnClose and not EndLessMapManager.openedFormat then
|
||||||
-- this:GetBagEnergy()
|
-- this:GetBagEnergy()
|
||||||
-- EndLessMapManager.isUpdateOnClose = false
|
-- EndLessMapManager.isUpdateOnClose = false
|
||||||
--end
|
--end
|
||||||
|
BindRedPointObject(RedPointType.wujinTreasure,this.endLessTreasureRed)
|
||||||
BindRedPointObject(RedPointType.wujinBianDui,this.btnFormatRed)
|
BindRedPointObject(RedPointType.wujinBianDui,this.btnFormatRed)
|
||||||
-- 如果全屏界面打开时刷新过,重新激活界面需要刷新一次
|
-- 如果全屏界面打开时刷新过,重新激活界面需要刷新一次
|
||||||
if EndLessMapManager.isUpdateOnClose then
|
if EndLessMapManager.isUpdateOnClose then
|
||||||
|
@ -426,7 +427,6 @@ function EndLessMapView:RefreshTargetRoote()
|
||||||
-- 1 "领取"
|
-- 1 "领取"
|
||||||
-- 2 "前往"
|
-- 2 "前往"
|
||||||
this.curMission = EndLessMapManager.GetRewardData()
|
this.curMission = EndLessMapManager.GetRewardData()
|
||||||
LogGreen(this.curMission.state.." this.curMission.state")
|
|
||||||
if this.curMission.state == 2 then
|
if this.curMission.state == 2 then
|
||||||
this.TargetBtn1.gameObject:SetActive(true) --未完成
|
this.TargetBtn1.gameObject:SetActive(true) --未完成
|
||||||
this.TargetBtn2.gameObject:SetActive(false) --以达成
|
this.TargetBtn2.gameObject:SetActive(false) --以达成
|
||||||
|
@ -748,6 +748,8 @@ function EndLessMapView:OnClose()
|
||||||
-- this.warn:SetActive(false)
|
-- this.warn:SetActive(false)
|
||||||
Util.ClearChild(this.selectHeroGrid.transform)
|
Util.ClearChild(this.selectHeroGrid.transform)
|
||||||
ClearRedPointObject(RedPointType.wujinBianDui,this.btnFormatRed)
|
ClearRedPointObject(RedPointType.wujinBianDui,this.btnFormatRed)
|
||||||
|
ClearRedPointObject(RedPointType.wujinTreasure,this.endLessTreasureRed)
|
||||||
|
ClearRedPointObject(RedPointType.wujinMission,this.btnNoteRed)
|
||||||
this.heroList = {}
|
this.heroList = {}
|
||||||
this.isPanelClose = true
|
this.isPanelClose = true
|
||||||
EndLessMapManager.isUpdateOnClose = false
|
EndLessMapManager.isUpdateOnClose = false
|
||||||
|
@ -776,8 +778,7 @@ end
|
||||||
function EndLessMapView:OnDestroy()
|
function EndLessMapView:OnDestroy()
|
||||||
this.spLoader:Destroy()
|
this.spLoader:Destroy()
|
||||||
if not this:IsEndLessMap() then return end
|
if not this:IsEndLessMap() then return end
|
||||||
ClearRedPointObject(RedPointType.wujinTreasure,this.endLessTreasureRed)
|
|
||||||
ClearRedPointObject(RedPointType.wujinMission,this.btnNoteRed)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
return EndLessMapView
|
return EndLessMapView
|
||||||
|
|
Loading…
Reference in New Issue