日常报错

onepiece_demo_arena
xiejun 2023-12-05 14:06:35 +08:00
parent ce0d70e33f
commit 39ecf196a2
2 changed files with 9 additions and 8 deletions

View File

@ -47,7 +47,8 @@ function this:InitComponent(gameObject)
this.RewardPanelGetInfo = Util.GetGameObject(gameObject, "rewardBg/RewardPanel/getInfo") this.RewardPanelGetInfo = Util.GetGameObject(gameObject, "rewardBg/RewardPanel/getInfo")
this.RewardPanelGrid = Util.GetGameObject(gameObject, "rewardBg/RewardPanel/ViewRect/grid") this.RewardPanelGrid = Util.GetGameObject(gameObject, "rewardBg/RewardPanel/ViewRect/grid")
this.ReninawardMaskBtn = Util.GetGameObject(gameObject, "rewardBg/RewardPanel/rewardMaskBtn") this.RewardPanel = Util.GetGameObject(gameObject, "rewardBg/RewardPanel")
this.rewardMaskBtn = Util.GetGameObject(gameObject, "rewardBg/RewardPanel/rewardMaskBtn")
this.progressBottom = Util.GetGameObject(gameObject, "rewardBg/progressBottom/Image"):GetComponent("Image") this.progressBottom = Util.GetGameObject(gameObject, "rewardBg/progressBottom/Image"):GetComponent("Image")
this.totalPro = Util.GetGameObject(gameObject, "rewardBg/totalProImage/totalPro"):GetComponent("Text") this.totalPro = Util.GetGameObject(gameObject, "rewardBg/totalProImage/totalPro"):GetComponent("Text")
this.getInfo = Util.GetGameObject(gameObject, "rewardBg/RewardPanel/getInfo"):GetComponent("Text") this.getInfo = Util.GetGameObject(gameObject, "rewardBg/RewardPanel/getInfo"):GetComponent("Text")

View File

@ -518,9 +518,9 @@ function RewardItemSingleShowPopup:OnShow()
end end
end end
end end
this.scroll:GetComponent("RectTransform").sizeDelta = Vector2.New(912.8,717.6) this.scroll:GetComponent("RectTransform").sizeDelta = Vector2.New(898.68,717.6)
-- this.equipProGridCom.spacing = 160 this.equipProGridCom.spacing = 20
-- this.equipProGrid:GetComponent("RectTransform").sizeDelta = Vector2.New(807.7,this.equipProGridCom.spacing*(#jumpDataList)) this.equipProGrid:GetComponent("RectTransform").sizeDelta = Vector2.New(807.7,this.equipProGridCom.spacing*(#jumpDataList))
else else
this.btnClose:SetActive(false) this.btnClose:SetActive(false)
-- this.equipQuaText.gameObject:SetActive(true) -- this.equipQuaText.gameObject:SetActive(true)
@ -562,10 +562,10 @@ function RewardItemSingleShowPopup:OnShow()
end end
end end
end end
this.scroll:GetComponent("RectTransform").sizeDelta = Vector2.New(912.8,600) this.scroll:GetComponent("RectTransform").sizeDelta = Vector2.New(898.68,600)
-- if jumpDataList and #jumpDataList then if jumpDataList and #jumpDataList then
-- this.equipProGrid:GetComponent("RectTransform").sizeDelta = Vector2.New(807.7,this.equipProGridCom.spacing*(#jumpDataList)) this.equipProGrid:GetComponent("RectTransform").sizeDelta = Vector2.New(807.7,this.equipProGridCom.spacing*(#jumpDataList))
-- end end
end end
this.itemView:OnOpen(false, {itemConfigData.Id,0}, 1.1, false, false, false, self.sortingOrder) this.itemView:OnOpen(false, {itemConfigData.Id,0}, 1.1, false, false, false, self.sortingOrder)