【降妖夺宝】点击抽卡时可以切换其他界面修复
parent
8f9a58468f
commit
601eefb120
File diff suppressed because it is too large
Load Diff
|
@ -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()
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue