十绝阵奖励】领奖阶段,未被领取的箱子可以查看到奖励

dev_chengFeng
zhangqiang 2021-04-01 19:02:47 +08:00
parent 54870cd601
commit abe9d67927
2 changed files with 5 additions and 2 deletions

View File

@ -148,6 +148,9 @@ function this.SetScrollPre(root,data,index)
end)
end)
if data.username=="" then
if itemViewList[root] then
itemViewList[root].gameObject:SetActive(false)
end
return
end
@ -155,7 +158,7 @@ function this.SetScrollPre(root,data,index)
itemViewList[root]=SubUIManager.Open(SubUIConfig.ItemView,itemRoot.transform)
end
itemViewList[root]:OnOpen(false,{data.itemId,data.itemCount},1.1,false,false,false)
itemViewList[root].gameObject:SetActive(true)
if data.username then
name.text=data.username
end

View File

@ -113,7 +113,7 @@ function TenRecruitPanel:OnOpen(...)
this.againIcon.sprite=Util.LoadSprite(artResourcesConfig[itemConfig[d[1]].ResourceID].Name)
this.againNum.text="×"..d[2]
maxTimesId=lotterySetting[type].MaxTimes --特权上限ID
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Main })
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.Recruit })
end
--界面关闭时调用(用于子类重写)