心愿抽卡修改提交
parent
710b8b2f1b
commit
0a4ef7e68d
File diff suppressed because it is too large
Load Diff
|
@ -247,7 +247,6 @@ end
|
|||
--界面打开时调用(用于子类重写)
|
||||
function RecruitMainPanel:OnOpen(_index)
|
||||
if not _index then
|
||||
LogGreen("GuideManager.GetCurId(1):"..tostring(GuideManager.GetCurId(1)) )
|
||||
if GuideManager.IsInMainGuide() and GuideManager.GetCurId(1) == 105 then
|
||||
self.CurRecruitId = TableRecruitType.Putong
|
||||
elseif GuideManager.IsInMainGuide() and GuideManager.GetCurId(1) == 1003 then
|
||||
|
|
|
@ -64,6 +64,7 @@ function RecruitPanelNew:InitComponent()
|
|||
self.upHeroPreList[i].pos = Util.GetGameObject(self.upHeroPreList[i].go,"di")
|
||||
self.upHeroPreList[i].itempos = Util.GetGameObject(self.upHeroPreList[i].go,"itempos")
|
||||
self.upHeroPreList[i].item = SubUIManager.Open(SubUIConfig.ItemView,self.upHeroPreList[i].itempos.transform)
|
||||
self.upHeroPreList[i].item.transform:SetSiblingIndex(0)
|
||||
self.upHeroPreList[i].choosed = Util.GetGameObject(self.upHeroPreList[i].go,"state")
|
||||
end
|
||||
self.btns = {}
|
||||
|
@ -95,19 +96,19 @@ function RecruitPanelNew:BindEvent()
|
|||
UIManager.OpenPanel(UIName.HeroPreviewPanel,true)
|
||||
end)
|
||||
|
||||
--心愿抽卡界面
|
||||
Util.AddClick(self.wish, function()
|
||||
local data = tonumber(specialConfig[119].Value)
|
||||
if RecruitManager.drawTimes[1] then
|
||||
if RecruitManager.drawTimes[1] >= data then
|
||||
UIManager.OpenPanel(UIName.GeneralBigPopup,GENERAL_POPUP_TYPE.WishDraw)
|
||||
else
|
||||
PopupTipPanel.ShowTip(string.format("%s次神将召唤后,开启心愿抽卡!",data - RecruitManager.drawTimes[1]))
|
||||
end
|
||||
else
|
||||
PopupTipPanel.ShowTip(string.format("%s次神将召唤后,开启心愿抽卡!",data))
|
||||
end
|
||||
end)
|
||||
-- --心愿抽卡界面
|
||||
-- Util.AddClick(self.wish, function()
|
||||
-- local data = tonumber(specialConfig[119].Value)
|
||||
-- if RecruitManager.drawTimes[1] then
|
||||
-- if RecruitManager.drawTimes[1] >= data then
|
||||
-- UIManager.OpenPanel(UIName.GeneralBigPopup,GENERAL_POPUP_TYPE.WishDraw)
|
||||
-- else
|
||||
-- PopupTipPanel.ShowTip(string.format("%s次神将召唤后,开启心愿抽卡!",data - RecruitManager.drawTimes[1]))
|
||||
-- end
|
||||
-- else
|
||||
-- PopupTipPanel.ShowTip(string.format("%s次神将召唤后,开启心愿抽卡!",data))
|
||||
-- end
|
||||
-- end)
|
||||
end
|
||||
|
||||
function RecruitPanelNew:AddListener()
|
||||
|
@ -208,7 +209,24 @@ function RecruitPanelNew:UpdataWishPanel()
|
|||
self.upHeroPreList[i].item.gameObject:SetActive(false)
|
||||
self.upHeroPreList[i].choosed.gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
Util.AddOnceClick(self.upHeroPreList[i].pos,function()
|
||||
local tempdata = tonumber(specialConfig[119].Value)
|
||||
if RecruitManager.drawTimes[1] then
|
||||
if RecruitManager.drawTimes[1] >= tempdata then
|
||||
if data.status == 1 then
|
||||
elseif id > 0 then
|
||||
UIManager.OpenPanel(UIName.GeneralBigPopup,GENERAL_POPUP_TYPE.WishDraw,ConfigManager.GetConfigData(ConfigName.HeroConfig,id).PropertyName)
|
||||
else
|
||||
UIManager.OpenPanel(UIName.GeneralBigPopup,GENERAL_POPUP_TYPE.WishDraw)
|
||||
end
|
||||
else
|
||||
PopupTipPanel.ShowTip(string.format("%s次神将召唤后,开启心愿抽卡!",tempdata - RecruitManager.drawTimes[1]))
|
||||
end
|
||||
else
|
||||
PopupTipPanel.ShowTip(string.format("%s次神将召唤后,开启心愿抽卡!",tempdata))
|
||||
end
|
||||
end)
|
||||
end
|
||||
end)
|
||||
end
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue