【自选宝箱】界面调整

dev_chengFeng
ZhangBiao 2021-03-19 23:54:24 +08:00
parent 2f658f1157
commit cae60a1318
1 changed files with 5 additions and 0 deletions

View File

@ -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
-- 打开,重新打开时回调