主题活动限时召唤,乾坤宝盒卡死提交
parent
a70f45e7a5
commit
360a8d3cae
|
@ -24,7 +24,7 @@ local isLimitUpHero=false
|
||||||
--初始化组件(用于子类重写)
|
--初始化组件(用于子类重写)
|
||||||
function QianKunBoxBuyTenPanel:InitComponent()
|
function QianKunBoxBuyTenPanel:InitComponent()
|
||||||
this.spLoader = SpriteLoader.New()
|
this.spLoader = SpriteLoader.New()
|
||||||
this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform, { showType = UpViewOpenType.ShowLeft, panelType = PanelType.ElementDrawCard })
|
|
||||||
orginLayer = 0
|
orginLayer = 0
|
||||||
self.bg = Util.GetGameObject(self.gameObject, "effect")
|
self.bg = Util.GetGameObject(self.gameObject, "effect")
|
||||||
screenAdapte(self.bg)
|
screenAdapte(self.bg)
|
||||||
|
@ -147,6 +147,9 @@ function QianKunBoxBuyTenPanel:OnOpen(...)
|
||||||
if upConfig then
|
if upConfig then
|
||||||
local wish=ConfigManager.GetConfigData(ConfigName.WishActivitySetting,1)
|
local wish=ConfigManager.GetConfigData(ConfigName.WishActivitySetting,1)
|
||||||
if wish then
|
if wish then
|
||||||
|
if not this.UpView then
|
||||||
|
this.UpView = SubUIManager.Open(SubUIConfig.UpView, self.gameObject.transform, { showType = UpViewOpenType.ShowLeft, panelType = PanelType.ElementDrawCard })
|
||||||
|
end
|
||||||
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.TimelimitCall })
|
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.TimelimitCall })
|
||||||
isLimitUpHero=true
|
isLimitUpHero=true
|
||||||
this.itemInfo3.text="10次"
|
this.itemInfo3.text="10次"
|
||||||
|
@ -155,7 +158,10 @@ function QianKunBoxBuyTenPanel:OnOpen(...)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
d = RecruitManager.GetExpendData(this.recruitType)
|
d = RecruitManager.GetExpendData(this.recruitType)
|
||||||
|
if this.UpView then
|
||||||
SubUIManager.Close(this.UpView)
|
SubUIManager.Close(this.UpView)
|
||||||
|
this.UpView = nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
itemId=d[1]
|
itemId=d[1]
|
||||||
itemNum=d[2]
|
itemNum=d[2]
|
||||||
|
@ -208,13 +214,13 @@ end
|
||||||
|
|
||||||
--界面关闭时调用(用于子类重写)
|
--界面关闭时调用(用于子类重写)
|
||||||
function QianKunBoxBuyTenPanel:OnClose()
|
function QianKunBoxBuyTenPanel:OnClose()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--界面销毁时调用(用于子类重写)
|
--界面销毁时调用(用于子类重写)
|
||||||
function QianKunBoxBuyTenPanel:OnDestroy()
|
function QianKunBoxBuyTenPanel:OnDestroy()
|
||||||
this.spLoader:Destroy()
|
this.spLoader:Destroy()
|
||||||
SubUIManager.Close(this.UpView)
|
SubUIManager.Close(this.UpView)
|
||||||
|
this.UpView = nil
|
||||||
this.views = nil
|
this.views = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -292,9 +292,9 @@ function TimeLimitUpHero:Recruit(actId,type,itemId)
|
||||||
--UIManager.OpenPanel(UIName.SingleRecruitPanel, msg.drop.Hero,actId,type,{RecruitType.TimeLimitSingle,RecruitType.TimeLimitTen})
|
--UIManager.OpenPanel(UIName.SingleRecruitPanel, msg.drop.Hero,actId,type,{RecruitType.TimeLimitSingle,RecruitType.TimeLimitTen})
|
||||||
UIManager.OpenPanel(UIName.QianKunBoxBuyTenPanel, msg.drop,actId,{RecruitType.PrayerSingle,RecruitType.PrayerTen},tenFunc)
|
UIManager.OpenPanel(UIName.QianKunBoxBuyTenPanel, msg.drop,actId,{RecruitType.PrayerSingle,RecruitType.PrayerTen},tenFunc)
|
||||||
end
|
end
|
||||||
if msg.drop.Hero[1] then
|
-- if msg.drop.Hero[1] then
|
||||||
UIManager.OpenPanel(UIName.SingleRecruitPanel, msg.drop.Hero[1],actId,1,{RecruitType.PrayerSingle,RecruitType.PrayerTen},oneFunc2)
|
-- UIManager.OpenPanel(UIName.SingleRecruitPanel, msg.drop.Hero[1],actId,1,{RecruitType.PrayerSingle,RecruitType.PrayerTen},oneFunc2)
|
||||||
end
|
-- end
|
||||||
CheckRedPointStatus(RedPointType.TimeLimitWish)
|
CheckRedPointStatus(RedPointType.TimeLimitWish)
|
||||||
end,self.freeTimesId)
|
end,self.freeTimesId)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue