diff --git a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_RecruitBox.lua b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_RecruitBox.lua index f3ea19533d..bd39dc58b1 100644 --- a/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_RecruitBox.lua +++ b/Assets/ManagedResources/~Lua/Modules/Popup/View/GeneralPopup_RecruitBox.lua @@ -30,9 +30,13 @@ function this:BindEvent() return end RecruitManager.RecruitRequest(RecruitType.RecruitBox, function(msg) - UIManager.OpenPanel(UIName.SingleRecruitPanel, msg.drop.Hero[1],RecruitType.RecruitBox,1,{RecruitType.RecruitBox,RecruitType.RecruitBox}) + --UIManager.OpenPanel(UIName.SingleRecruitPanel, msg.drop.Hero[1],RecruitType.RecruitBox,1,{RecruitType.RecruitBox,RecruitType.RecruitBox}) this.curNum.text=string.format(Language[11586],BagManager.GetItemCountById(94)) parent:ClosePanel() + UIManager.OpenPanel(UIName.RewardItemPopup,msg.drop,1,function() + UIManager.OpenPanel(UIName.RecruitMainPanel) + end) + --this:ShowInfo() end) end) @@ -48,6 +52,10 @@ function this:OnShow(_parent,...) parent=_parent sortingOrder =_parent.sortingOrder local args = {...} + this:ShowInfo() +end + +function this:ShowInfo() _CostItem=lotterySetting[RecruitType.RecruitBox].CostItem[1][2] local con = string.split(specialConfig[49].Value, "#") @@ -68,6 +76,7 @@ function this:OnShow(_parent,...) this.anim.enabled = BagManager.GetItemCountById(94) >= tonumber(_CostItem) end + function this:OnClose() end