四元阵 报错修改
parent
06cf7f6cdd
commit
ee84f39794
|
@ -46,6 +46,7 @@ end
|
|||
function ElementDrawCardPanelNew:BindEvent()
|
||||
|
||||
Util.AddClick(self.buyOneBtn, function ()
|
||||
local index = self.index > 0 and self.index or RecruitManager.recruitSubIndex
|
||||
local singleConfig = ConfigManager.TryGetConfigDataByThreeKey(ConfigName.LotterySetting,"LotteryType",TableRecruitType.Siyuanzhen,"PropertyType",self.index,"PerCount",1)
|
||||
local costnum = singleConfig.CostItem[1][2]
|
||||
local costId = singleConfig.CostItem[1][1]
|
||||
|
@ -86,6 +87,7 @@ function ElementDrawCardPanelNew:BindEvent()
|
|||
for i = 1, #self.itemPos do
|
||||
Util.AddClick(self.itemPos[i].go, function()
|
||||
self.index = i
|
||||
RecruitManager.recruitSubIndex = i
|
||||
self:BtnAction(i)
|
||||
end)
|
||||
end
|
||||
|
|
|
@ -151,21 +151,27 @@ function RecruitMainPanel:BindEvent()
|
|||
end)
|
||||
Util.AddClick(this.leftBtn, function()
|
||||
this.mask:SetActive(true)
|
||||
this.MoveTo(3)
|
||||
Timer.New(function()
|
||||
self.thread = coroutine.start(function()
|
||||
coroutine.wait(0.01)
|
||||
this.MoveTo(3)
|
||||
coroutine.wait(0.25)
|
||||
this.SortItemList()
|
||||
coroutine.wait(0.01)
|
||||
this:LeftAction()
|
||||
this.mask:SetActive(false)
|
||||
end,0.23):Start()
|
||||
end)
|
||||
end)
|
||||
Util.AddClick(this.rightBtn, function()
|
||||
this.mask:SetActive(true)
|
||||
this.MoveTo(2)
|
||||
Timer.New(function()
|
||||
self.thread = coroutine.start(function()
|
||||
coroutine.wait(0.01)
|
||||
this.MoveTo(2)
|
||||
coroutine.wait(0.25)
|
||||
this.SortItemList()
|
||||
coroutine.wait(0.01)
|
||||
this:RightAction()
|
||||
this.mask:SetActive(false)
|
||||
end,0.23):Start()
|
||||
end)
|
||||
end)
|
||||
|
||||
Util.AddClick(this.jiantouyou , function()
|
||||
|
@ -352,11 +358,10 @@ function this:SetIndex()
|
|||
isenter = false
|
||||
this.mask:SetActive(true)
|
||||
this.MoveTo(LOY)
|
||||
Timer.New(function()
|
||||
offSet = offSet - 1
|
||||
this.SortItemList()
|
||||
isenter = true
|
||||
end,0.25):Start()
|
||||
coroutine.wait(0.25)
|
||||
offSet = offSet - 1
|
||||
this.SortItemList()
|
||||
isenter = true
|
||||
end
|
||||
coroutine.wait(0.01)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue