parent
d09bc60b5e
commit
4a90f8838e
|
@ -60,7 +60,10 @@ end
|
||||||
--绑定事件(用于子类重写)
|
--绑定事件(用于子类重写)
|
||||||
function SingleRecruitPanel:BindEvent()
|
function SingleRecruitPanel:BindEvent()
|
||||||
Util.AddClick(self.sureBtn, function()
|
Util.AddClick(self.sureBtn, function()
|
||||||
isFirst=true
|
isFirst=true
|
||||||
|
if lotterySetting[type].LotteryType == 11 then
|
||||||
|
isFirst=false
|
||||||
|
end
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
if PlayerManager.IsGetFiveStarHero then--and OperatingManager.IsShowFiveStarPatch then
|
if PlayerManager.IsGetFiveStarHero then--and OperatingManager.IsShowFiveStarPatch then
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.PatFace.PatFaceSend, FacePanelType.GrowGift, 5)
|
Game.GlobalEvent:DispatchEvent(GameEvent.PatFace.PatFaceSend, FacePanelType.GrowGift, 5)
|
||||||
|
@ -111,6 +114,9 @@ function SingleRecruitPanel:BindEvent()
|
||||||
--十连跳过按钮 直接打开十连抽展示界面
|
--十连跳过按钮 直接打开十连抽展示界面
|
||||||
Util.AddClick(self.jumpBtn, function()
|
Util.AddClick(self.jumpBtn, function()
|
||||||
isFirst=true
|
isFirst=true
|
||||||
|
if lotterySetting[type].LotteryType == 11 then
|
||||||
|
isFirst=false
|
||||||
|
end
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
UIManager.OpenPanel(UIName.TenRecruitPanel,heroData,type,recruitType)
|
UIManager.OpenPanel(UIName.TenRecruitPanel,heroData,type,recruitType)
|
||||||
end)
|
end)
|
||||||
|
@ -124,6 +130,9 @@ function SingleRecruitPanel:BindEvent()
|
||||||
elseif state==2 then
|
elseif state==2 then
|
||||||
if index>=LengthOfTable(_heroTable) then
|
if index>=LengthOfTable(_heroTable) then
|
||||||
isFirst=true
|
isFirst=true
|
||||||
|
if lotterySetting[type].LotteryType == 11 then
|
||||||
|
isFirst=false
|
||||||
|
end
|
||||||
self:ClosePanel()
|
self:ClosePanel()
|
||||||
UIManager.OpenPanel(UIName.TenRecruitPanel,heroData,type,recruitType)
|
UIManager.OpenPanel(UIName.TenRecruitPanel,heroData,type,recruitType)
|
||||||
else
|
else
|
||||||
|
@ -165,12 +174,19 @@ function SingleRecruitPanel:OnOpen(...)
|
||||||
recruitType=data[4]
|
recruitType=data[4]
|
||||||
end
|
end
|
||||||
function SingleRecruitPanel:OnShow()
|
function SingleRecruitPanel:OnShow()
|
||||||
|
isFirst=true
|
||||||
maxTimesId=lotterySetting[type].MaxTimes --特权上限ID
|
maxTimesId=lotterySetting[type].MaxTimes --特权上限ID
|
||||||
index=0
|
index=0
|
||||||
if state==1 then --单抽
|
if state==1 then --单抽
|
||||||
|
if lotterySetting[type].LotteryType == 11 then
|
||||||
|
isFirst=false
|
||||||
|
end
|
||||||
self:TenOpenPanel()
|
self:TenOpenPanel()
|
||||||
elseif state==2 then
|
elseif state==2 then
|
||||||
isFirst=true
|
isFirst=true
|
||||||
|
if lotterySetting[type].LotteryType == 11 then
|
||||||
|
isFirst=false
|
||||||
|
end
|
||||||
_heroTable={}
|
_heroTable={}
|
||||||
--将符合条件的英雄插入容器中
|
--将符合条件的英雄插入容器中
|
||||||
for k, v in ipairs(heroData) do
|
for k, v in ipairs(heroData) do
|
||||||
|
|
Loading…
Reference in New Issue