心魔试炼关卡显示修改 同步常规

tcx_xiyou_bt_ios
PC-202302260912\Administrator 2024-05-16 14:50:43 +08:00
parent 593d12de68
commit 61a7e6f224
3 changed files with 6 additions and 3 deletions

View File

@ -199,7 +199,8 @@ function this.InitMonsterShow()
this.singledataList[monsterInfo[index].wave] = tempData
--this.singlePreList[go] = this.singledataList[monsterInfo[index].wave]
end,true,true)
this.scrollView:SetIndex(#monsterInfo - curwaves - 1)
--this.scrollView:SetIndex(#monsterInfo - curwaves - 1)
this.scrollView:SetIndex(10)
-- if MonsterCampManager.CurOffsetIndex < 0 then
-- this.scrollView:SetIndex((#monsterInfo-trailData.monsterWave-2))
-- else

View File

@ -228,7 +228,9 @@ function this.InitMonsterShow()
local tempData = this.SingleDataShow(go, monsterInfo[index])
this.singledataList[monsterInfo[index].Id] = tempData
end,true,true)
this.scrollView:SetIndex(#monsterInfo - MonsterCampManager.monsterWave - 1)
LogError("#monsterInfo=="..#monsterInfo.." MonsterCampManager.monsterWave=="..MonsterCampManager.monsterWave)
--this.scrollView:SetIndex(#monsterInfo - MonsterCampManager.monsterWave - 1)
this.scrollView:SetIndex(10)
end
--界面关闭时调用(用于子类重写)

View File

@ -154,7 +154,7 @@ function RewardItemPopup:OnOpen(...)
--self:ClosePanel()
return
end
this.rewardBG:SetActive(#drop.itemlist>0)
this.rewardBG:SetActive(drop and #drop.itemlist>0)
local haveRecord = BattleRecordManager.isHaveRecord()
this.btnResult:SetActive(haveRecord and args[5])
this.btnBattleBack:SetActive(haveRecord and args[5] and BattleManager.GetLastBattleType() ~= BATTLE_TYPE.MAP_FIGHT and not GuideManager.IsInMainGuide() and not MapManager.Mapping and BattleManager.GetLastBattleType() ~= BATTLE_TYPE.TASUILINGXIAO)