送无限抽修改
parent
ad48afbfe9
commit
7ecd2a3bd2
|
@ -11,13 +11,13 @@ local activityData = {}
|
||||||
function OpenSeverWelfarePanel:InitComponent()
|
function OpenSeverWelfarePanel:InitComponent()
|
||||||
this.spLoader = SpriteLoader.New()
|
this.spLoader = SpriteLoader.New()
|
||||||
this.closeBtn = Util.GetGameObject(self.transform, "bg/closeBtn")
|
this.closeBtn = Util.GetGameObject(self.transform, "bg/closeBtn")
|
||||||
this.titleText = Util.GetGameObject(self.transform, "bg/titleText"):GetComponent("Text")
|
this.titleText = Util.GetGameObject(self.transform, "titleText"):GetComponent("Text")
|
||||||
this.timeText = Util.GetGameObject(self.transform, "timeText"):GetComponent("Text")
|
this.timeText = Util.GetGameObject(self.transform, "timeText"):GetComponent("Text")
|
||||||
this.timeTextGo = Util.GetGameObject(self.transform, "timeText")
|
this.timeTextGo = Util.GetGameObject(self.transform, "timeText")
|
||||||
this.rewardPre = Util.GetGameObject(self.gameObject, "rewardPre")
|
this.rewardPre = Util.GetGameObject(self.gameObject, "rewardPre")
|
||||||
local v = Util.GetGameObject(self.gameObject, "rect"):GetComponent("RectTransform").rect
|
local v = Util.GetGameObject(self.gameObject, "rect"):GetComponent("RectTransform").rect
|
||||||
this.ScrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView, Util.GetGameObject(self.gameObject, "rect").transform,
|
this.ScrollView = SubUIManager.Open(SubUIConfig.ScrollCycleView, Util.GetGameObject(self.gameObject, "rect").transform,
|
||||||
this.rewardPre, nil, Vector2.New(v.width, v.height), 1, 1, Vector2.New(0,-5))
|
this.rewardPre, nil, Vector2.New(v.width, v.height), 1, 1, Vector2.New(0,10))
|
||||||
this.ScrollView.moveTween.MomentumAmount = 1
|
this.ScrollView.moveTween.MomentumAmount = 1
|
||||||
this.ScrollView.moveTween.Strength = 1
|
this.ScrollView.moveTween.Strength = 1
|
||||||
this.NoviceItemList={}--存储itemview 重复利用
|
this.NoviceItemList={}--存储itemview 重复利用
|
||||||
|
@ -170,7 +170,7 @@ function this.SingleDataShow(go,rewardData)
|
||||||
-- activityRewardGo:SetActive(true)
|
-- activityRewardGo:SetActive(true)
|
||||||
-- end
|
-- end
|
||||||
local sConFigData = activityRewardConfig[rewardData.missionId]
|
local sConFigData = activityRewardConfig[rewardData.missionId]
|
||||||
local titleText = Util.GetGameObject(activityRewardGo, "titleImage/titleText"):GetComponent("Text")
|
local titleText = Util.GetGameObject(activityRewardGo, "titleText"):GetComponent("Text")
|
||||||
titleText.text = GetLanguageStrById(sConFigData.ContentsShow)
|
titleText.text = GetLanguageStrById(sConFigData.ContentsShow)
|
||||||
local itemGroup = Util.GetGameObject(activityRewardGo, "content")
|
local itemGroup = Util.GetGameObject(activityRewardGo, "content")
|
||||||
--滚动条复用重设itemview
|
--滚动条复用重设itemview
|
||||||
|
@ -180,7 +180,7 @@ function this.SingleDataShow(go,rewardData)
|
||||||
end
|
end
|
||||||
for i = 1, #sConFigData.Reward do
|
for i = 1, #sConFigData.Reward do
|
||||||
if this.NoviceItemList[go][i] then
|
if this.NoviceItemList[go][i] then
|
||||||
this.NoviceItemList[go][i]:OnOpen(false, {sConFigData.Reward[i][1],sConFigData.Reward[i][2]}, 0.9,false,false,false,sortingOrder)
|
this.NoviceItemList[go][i]:OnOpen(false, {sConFigData.Reward[i][1],sConFigData.Reward[i][2]}, 0.7,false,false,false,sortingOrder)
|
||||||
this.NoviceItemList[go][i].gameObject:SetActive(true)
|
this.NoviceItemList[go][i].gameObject:SetActive(true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -191,7 +191,7 @@ function this.SingleDataShow(go,rewardData)
|
||||||
this.NoviceItemList[go][i].gameObject:SetActive(false)
|
this.NoviceItemList[go][i].gameObject:SetActive(false)
|
||||||
end
|
end
|
||||||
for i = 1, #sConFigData.Reward do
|
for i = 1, #sConFigData.Reward do
|
||||||
this.NoviceItemList[go][i]:OnOpen(false, {sConFigData.Reward[i][1],sConFigData.Reward[i][2]}, 0.9,false,false,false,sortingOrder)
|
this.NoviceItemList[go][i]:OnOpen(false, {sConFigData.Reward[i][1],sConFigData.Reward[i][2]}, 0.7,false,false,false,sortingOrder)
|
||||||
this.NoviceItemList[go][i].gameObject:SetActive(true)
|
this.NoviceItemList[go][i].gameObject:SetActive(true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue