乾坤宝盒 提示修改
parent
2bf92fdfdd
commit
ce8751bbee
|
@ -133,7 +133,7 @@ function QianKunBoxBuyOnePanel:OnOpen(...)
|
||||||
local itemId=0
|
local itemId=0
|
||||||
local itemNum=0
|
local itemNum=0
|
||||||
local d
|
local d
|
||||||
local upConfig=ConfigManager.TryGetConfigDataByKey(ConfigName.WishActivityUp,"ActivityId",this.recruitType)
|
local upConfig = this.recruitType == RecruitType.PrayerSingle or this.recruitType == RecruitType.PrayerTen
|
||||||
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
|
||||||
|
@ -143,6 +143,7 @@ function QianKunBoxBuyOnePanel:OnOpen(...)
|
||||||
isLimitUpHero=true
|
isLimitUpHero=true
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
isLimitUpHero = false
|
||||||
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.QianKunBox })
|
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.QianKunBox })
|
||||||
d = RecruitManager.GetExpendData(this.recruitType)
|
d = RecruitManager.GetExpendData(this.recruitType)
|
||||||
end
|
end
|
||||||
|
@ -178,7 +179,6 @@ function QianKunBoxBuyOnePanel:OnOpen(...)
|
||||||
end
|
end
|
||||||
--界面关闭时调用(用于子类重写)
|
--界面关闭时调用(用于子类重写)
|
||||||
function QianKunBoxBuyOnePanel:OnClose()
|
function QianKunBoxBuyOnePanel:OnClose()
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--界面销毁时调用(用于子类重写)
|
--界面销毁时调用(用于子类重写)
|
||||||
|
|
|
@ -143,7 +143,7 @@ function QianKunBoxBuyTenPanel:OnOpen(...)
|
||||||
local itemId=0
|
local itemId=0
|
||||||
local itemNum=0
|
local itemNum=0
|
||||||
local d
|
local d
|
||||||
local upConfig=ConfigManager.TryGetConfigDataByKey(ConfigName.WishActivityUp,"ActivityId",this.recruitType)
|
local upConfig = this.recruitType == RecruitType.PrayerSingle or this.recruitType == RecruitType.PrayerTen
|
||||||
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
|
||||||
|
@ -157,6 +157,7 @@ function QianKunBoxBuyTenPanel:OnOpen(...)
|
||||||
d = RecruitManager.GetExpendDataByCostItem(wish.CostItemMul,2,num)
|
d = RecruitManager.GetExpendDataByCostItem(wish.CostItemMul,2,num)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
isLimitUpHero = false
|
||||||
d = RecruitManager.GetExpendData(this.recruitType)
|
d = RecruitManager.GetExpendData(this.recruitType)
|
||||||
if this.UpView then
|
if this.UpView then
|
||||||
SubUIManager.Close(this.UpView)
|
SubUIManager.Close(this.UpView)
|
||||||
|
|
|
@ -287,10 +287,10 @@ function TimeLimitUpHero:Recruit(actId,type,itemId)
|
||||||
PrivilegeManager.RefreshPrivilegeUsedTimes(self.yaojingMaxTimeId,recrutType)--记录妖晶抽卡次数
|
PrivilegeManager.RefreshPrivilegeUsedTimes(self.yaojingMaxTimeId,recrutType)--记录妖晶抽卡次数
|
||||||
end
|
end
|
||||||
if type == 1 then
|
if type == 1 then
|
||||||
UIManager.OpenPanel(UIName.QianKunBoxBuyOnePanel, msg.drop,actId,{RecruitType.PrayerSingle,RecruitType.PrayerTen},oneFunc)
|
UIManager.OpenPanel(UIName.QianKunBoxBuyOnePanel, msg.drop,RecruitType.PrayerSingle,{RecruitType.PrayerSingle,RecruitType.PrayerTen},oneFunc)
|
||||||
else
|
else
|
||||||
--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,RecruitType.PrayerTen,{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)
|
||||||
|
|
Loading…
Reference in New Issue