From b5445b2ed63e7ee959c2b567c33393601027b51e Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Tue, 26 Apr 2022 15:03:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A5=9E=E5=8D=B0bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/FightLevel/FightLevelManager.lua | 17 ++++++++++++++--- .../~Lua/Modules/GodPrint/GodPrintPanel.lua | 3 ++- .../~Lua/Modules/GodPrint/GodPrintPopUpV2.lua | 2 ++ .../~Lua/Modules/RoleInfo/RoleInfoPanel.lua | 2 +- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/FightLevel/FightLevelManager.lua b/Assets/ManagedResources/~Lua/Modules/FightLevel/FightLevelManager.lua index 89cecb3ed7..a43f1b98cb 100644 --- a/Assets/ManagedResources/~Lua/Modules/FightLevel/FightLevelManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/FightLevel/FightLevelManager.lua @@ -399,9 +399,20 @@ function this.RequestGetDailyReward(func) PopupTipPanel.ShowTip(string.format(Language[10298],GetLanguageStrById(itemConfig[itemId].Name))) return end - ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,storeId,1,function() - PrivilegeManager.RefreshPrivilegeUsedTimes(buyPriId,1) - s() + -- ShopManager.RequestBuyShopItem(SHOP_TYPE.FUNCTION_SHOP,storeId,1,function() + -- PrivilegeManager.RefreshPrivilegeUsedTimes(buyPriId,1) + -- s() + -- end) + NetManager.GetHardStageDailyReward(function(msg) + PrivilegeManager.RefreshPrivilegeUsedTimes(buyPriId,1)--记录抽卡次数 + --PrivilegeManager.RefreshPrivilegeUsedTimes(buyPriId,1) + -- 刷新红点状态 + CheckRedPointStatus(RedPointType.FightLevelDailyReward) + -- 触发状态改变 + Game.GlobalEvent:DispatchEvent(GameEvent.FightLevel.DailyRewardStateChange) + -- 显示掉落 + + UIManager.OpenPanel(UIName.RewardItemPopup, msg.drop, 1) end) end end diff --git a/Assets/ManagedResources/~Lua/Modules/GodPrint/GodPrintPanel.lua b/Assets/ManagedResources/~Lua/Modules/GodPrint/GodPrintPanel.lua index d344be512d..9402891d47 100644 --- a/Assets/ManagedResources/~Lua/Modules/GodPrint/GodPrintPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/GodPrint/GodPrintPanel.lua @@ -47,7 +47,8 @@ function GodPrintPanel:InitComponent() this.showBtn:SetActive(false) this.backBtn = Util.GetGameObject(this.gameObject, "BackBtn/btnBack") this.empty=Util.GetGameObject(this.gameObject,"Empty") - + this.emptyTxt=Util.GetGameObject(this.gameObject,"Empty/talkImage/Text"):GetComponent("Text") + this.emptyTxt.text="无符合条件的神印!" --循环布局根节点 this.loopRoot=Util.GetGameObject(this.gameObject,"LoopRoot") this.loopPre=Util.GetGameObject(this.loopRoot,"Pre") diff --git a/Assets/ManagedResources/~Lua/Modules/GodPrint/GodPrintPopUpV2.lua b/Assets/ManagedResources/~Lua/Modules/GodPrint/GodPrintPopUpV2.lua index e91bb56896..7b5ea6e46c 100644 --- a/Assets/ManagedResources/~Lua/Modules/GodPrint/GodPrintPopUpV2.lua +++ b/Assets/ManagedResources/~Lua/Modules/GodPrint/GodPrintPopUpV2.lua @@ -23,6 +23,8 @@ function GodPrintPopUpV2:InitComponent() this.backBtn=Util.GetGameObject(this.panel,"BackBtn") this.title=Util.GetGameObject(this.panel,"Title"):GetComponent("Text") this.empty=Util.GetGameObject(this.panel,"Empty") + this.emptyTxt=Util.GetGameObject(this.panel,"Empty/talkImage/Text"):GetComponent("Text") + this.emptyTxt.text="未佩戴神印!" this.scrollRoot=Util.GetGameObject(this.gameObject,"ScrollRoot") this.pre=Util.GetGameObject(this.scrollRoot,"Pre") this.scrollView=SubUIManager.Open(SubUIConfig.ScrollCycleView,this.scrollRoot.transform,this.pre, nil,-- diff --git a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoPanel.lua index e9be6d4fee..9c3021f1bf 100644 --- a/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/RoleInfo/RoleInfoPanel.lua @@ -767,7 +767,7 @@ function this:UpdateHeroInfoData() if config then local limits = string.split(config.Value, "#") if limits then - this.godPrintBtn:SetActive(ActTimeCtrlManager.IsQualifiled(126)) + this.godPrintBtn:SetActive(ActTimeCtrlManager.IsQualifiled(126)and curHeroData.heroConfig.MaxRank >= 6) isOpenGod=curHeroData.star >= tonumber(limits[1]) Util.SetGray(this.godPrintBtn, not isOpenGod) Util.GetGameObject(this.godPrintBtn, "lock"):SetActive(not isOpenGod)