【降妖夺宝】点击抽卡时可以切换其他界面修复

dev_chengFeng
ZhangBiao 2020-12-24 16:57:39 +08:00
parent 8f9a58468f
commit 601eefb120
3 changed files with 456 additions and 372 deletions

View File

@ -201,6 +201,8 @@ local curActivityCount = {
--初始化组件(用于子类重写)
function DynamicActivityPanel:InitComponent()
orginLayer = 0
this.mask = Util.GetGameObject(self.gameObject,"mask")
this.mask:SetActive(false)
this.tabbox = Util.GetGameObject(self.gameObject, "bg/tabbox")
this.btnBack = Util.GetGameObject(self.gameObject, "bg/btnBack")
this.content = Util.GetGameObject(self.gameObject, "bg/pageContent")
@ -274,6 +276,7 @@ function DynamicActivityPanel:OnShow()
this.btnBack:SetActive(true)
this.tabList:SetActive(true)
this.bottomBar:SetActive(true)
this.mask:SetActive(false)
if _CurPageIndex then
this.PageTabCtrl:ChangeTab(_CurPageIndex)
end
@ -334,6 +337,7 @@ end
-- tab改变事件
function this.OnPageTabChange(index)
_CurPageIndex = index
this.mask:SetActive(false)
for i = 1, #this.PageList do
if this.PageList[i] then
this.PageList[i]:OnHide()

View File

@ -211,8 +211,10 @@ function XiangYaoDuoBao:refreshBtnShow()
end
local recruitOne = function()
RoleLiveGOGraphic.AnimationState:SetAnimation(0, "hit1", true)
this.mainPanel.mask:SetActive(true)
Timer.New(function ()
RoleLiveGOGraphic.AnimationState:SetAnimation(0, "idle", true)
this.mainPanel.mask:SetActive(false)
RecruitManager.RecruitRequest(singleRecruit.Id, function(msg)
PrivilegeManager.RefreshPrivilegeUsedTimes(maxtimesId,1)--记录抽卡次数
if not isFree and d[1] == 16 then
@ -240,8 +242,10 @@ function XiangYaoDuoBao:refreshBtnShow()
end
local recruitTen = function()
RoleLiveGOGraphic.AnimationState:SetAnimation(0, "hit3", true)
this.mainPanel.mask:SetActive(true)
Timer.New(function ()
RoleLiveGOGraphic.AnimationState:SetAnimation(0, "idle", true)
this.mainPanel.mask:SetActive(false)
RecruitManager.RecruitRequest(tenRecruit.Id, function(msg)
PrivilegeManager.RefreshPrivilegeUsedTimes(maxtimesId,10)--记录抽卡次数
if d[1] == 16 then