【自选宝箱】界面调整
parent
2f658f1157
commit
cae60a1318
|
@ -114,6 +114,11 @@ function RewardBoxPanel:OnOpen(...)
|
|||
this.rewardGroup = itemConfig[data[2]].RewardGroup
|
||||
this.itemId = itemConfig[data[2]].Id
|
||||
end
|
||||
|
||||
this.scroll.gameObject:GetComponent("RectTransform").sizeDelta = data[1] and Vector2.New(940, 880) or Vector2.New(940, 1000)
|
||||
this.scroll.gameObject:GetComponent("RectTransform").anchoredPosition = data[1] and Vector2.New(0, 415) or Vector2.New(0, 542.6)
|
||||
this.ScrollView.gameObject:GetComponent("RectTransform").sizeDelta = data[1] and Vector2.New(940, 900) or Vector2.New(940, 1000)
|
||||
Util.GetGameObject(this.gameObject,"bg/bg/huangtiao"):SetActive(not not data[1])
|
||||
end
|
||||
|
||||
-- 打开,重新打开时回调
|
||||
|
|
Loading…
Reference in New Issue