【降妖夺宝】取消抽卡前摇

dev_chengFeng hotfix/xma/local/1.1.61
ZhangBiao 2020-12-29 14:51:30 +08:00
parent 2576c5bcdd
commit c84656e705
1 changed files with 17 additions and 1 deletions

View File

@ -59,7 +59,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)
@ -102,6 +105,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) UIManager.OpenPanel(UIName.TenRecruitPanel,heroData,type)
end) end)
@ -115,6 +121,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) UIManager.OpenPanel(UIName.TenRecruitPanel,heroData,type)
else else
@ -155,12 +164,19 @@ function SingleRecruitPanel:OnOpen(...)
state=data[3] state=data[3]
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