魂印开启显示修改提交

TCX_dev_realOne_master
PC-202302260912\Administrator 2023-12-05 14:33:22 +08:00
parent 276de265a5
commit edb65d5c8f
1 changed files with 22 additions and 14 deletions

View File

@ -243,11 +243,15 @@ function this.SetLoopUI()
LogError("最大槽位数量"..loopCount.." 可装备槽位数量"..didLen.." 最大动态等级"..didLv.." 配置最大等级"..maxLv) LogError("最大槽位数量"..loopCount.." 可装备槽位数量"..didLen.." 最大动态等级"..didLv.." 配置最大等级"..maxLv)
--初始化 --初始化
for i=1, #loopList do
loopList[i]:SetActive(false)
end
for i=1,loopCount do for i=1,loopCount do
if not loopList[i] then if not loopList[i] then
loopList[i]=newObjToParent(this.loopPre,this.loopRoot) loopList[i]=newObjToParent(this.loopPre,this.loopRoot)
end end
loopList[i].name="Pre"..i loopList[i].name="Pre"..i
loopList[i]:SetActive(true)
end end
--设置不包含最后一位 为默认 --设置不包含最后一位 为默认
for j=1,loopCount do for j=1,loopCount do
@ -261,21 +265,25 @@ function this.SetLoopUI()
end end
end end
--最后一位锁定 --最后一位锁定
local rules=equipSignSetting[maxLv].OpenRules for k, v in ConfigPairs(equipSignSetting) do
if rules[1]==1 then local rules=v.OpenRules
if PlayerManager.level<rules[2] then if rules[1]==1 then
this.SetLoopPre(loopList[loopCount],2,nil,didLv) if PlayerManager.level<rules[2] then
else this.SetLoopPre(loopList[loopCount],2,nil,didLv)
this.SetLoopPre(loopList[loopCount],1) break
else
this.SetLoopPre(loopList[loopCount],1)
end
elseif rules[1]==2 then
if curHeroData.star<rules[2] then
this.SetLoopPre(loopList[loopCount],2,nil,didLv)
break
else
this.SetLoopPre(loopList[loopCount],1)
end
end end
elseif rules[1]==2 then end
if curHeroData.star<rules[2] then
this.SetLoopPre(loopList[loopCount],2,nil,didLv)
else
this.SetLoopPre(loopList[loopCount],1)
end
end
--数据赋值 --数据赋值
for k=1,#curHeroData.soulPrintList do for k=1,#curHeroData.soulPrintList do
local index=curHeroData.soulPrintList[k].position local index=curHeroData.soulPrintList[k].position