宝物培养位置修改

dev_chengFeng
jiaoyangna 2021-07-30 17:58:47 +08:00
parent e829b33d14
commit 2ecffb1b10
2 changed files with 3 additions and 1 deletions

View File

@ -3159,7 +3159,7 @@ MonoBehaviour:
m_ChildAlignment: 4
m_StartCorner: 0
m_StartAxis: 0
m_CellSize: {x: 150, y: 150}
m_CellSize: {x: 108, y: 108}
m_Spacing: {x: 63.8, y: 0}
m_Constraint: 0
m_ConstraintCount: 2

View File

@ -396,6 +396,7 @@ function EquipTreasureStrongPopup:CostShow(items)
for i = 1,math.max(#items,#this.costItemPreList) do
if not items[i] then
this.costItemPreList[i].gameObject:SetActive(false)
this.costPreList[i].gameObject:SetActive(false)
else
if not this.costPreList[i] then
this.costPreList[i] = newObjToParent(this.costItemPre,this.costItemGrid)
@ -403,6 +404,7 @@ function EquipTreasureStrongPopup:CostShow(items)
if not this.costItemPreList[i] then
this.costItemPreList[i] = SubUIManager.Open(SubUIConfig.ItemView,this.costPreList[i].transform)
end
this.costPreList[i].gameObject:SetActive(true)
this.costItemPreList[i].gameObject:SetActive(true)
if items[i].id==curEquipData.id then
this.costItemPreList[i]:OnOpen(false,{items[i].id,0}, 0.8, true, items[i].isEnough , false, 0)