乾坤宝盒 提示修改

dev_chengFeng
jiaoyangna 2021-07-22 14:17:40 +08:00
parent 2bf92fdfdd
commit ce8751bbee
3 changed files with 6 additions and 5 deletions

View File

@ -133,7 +133,7 @@ function QianKunBoxBuyOnePanel:OnOpen(...)
local itemId=0
local itemNum=0
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
local wish=ConfigManager.GetConfigData(ConfigName.WishActivitySetting,1)
if wish then
@ -143,6 +143,7 @@ function QianKunBoxBuyOnePanel:OnOpen(...)
isLimitUpHero=true
end
else
isLimitUpHero = false
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.QianKunBox })
d = RecruitManager.GetExpendData(this.recruitType)
end
@ -178,7 +179,6 @@ function QianKunBoxBuyOnePanel:OnOpen(...)
end
--界面关闭时调用(用于子类重写)
function QianKunBoxBuyOnePanel:OnClose()
end
--界面销毁时调用(用于子类重写)

View File

@ -143,7 +143,7 @@ function QianKunBoxBuyTenPanel:OnOpen(...)
local itemId=0
local itemNum=0
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
local wish=ConfigManager.GetConfigData(ConfigName.WishActivitySetting,1)
if wish then
@ -157,6 +157,7 @@ function QianKunBoxBuyTenPanel:OnOpen(...)
d = RecruitManager.GetExpendDataByCostItem(wish.CostItemMul,2,num)
end
else
isLimitUpHero = false
d = RecruitManager.GetExpendData(this.recruitType)
if this.UpView then
SubUIManager.Close(this.UpView)

View File

@ -287,10 +287,10 @@ function TimeLimitUpHero:Recruit(actId,type,itemId)
PrivilegeManager.RefreshPrivilegeUsedTimes(self.yaojingMaxTimeId,recrutType)--记录妖晶抽卡次数
end
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
--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
-- if msg.drop.Hero[1] then
-- UIManager.OpenPanel(UIName.SingleRecruitPanel, msg.drop.Hero[1],actId,1,{RecruitType.PrayerSingle,RecruitType.PrayerTen},oneFunc2)