From eafdbd9f44e0a9b9b3fab4caa3dcfb02870e8b03 Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <1545929779@qq.com> Date: Fri, 14 Jul 2023 11:27:34 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E5=B1=8F=E8=94=BD=E6=8C=82=E6=9C=BA?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=AF=BB=E5=AE=9D=E5=85=A5=E5=8F=A3=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=8F=8A=E7=BA=A2=E7=82=B9=E6=A3=80=E6=B5=8B"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 374e6d80cd4596877ca348f948b39af79d23a9b4. --- .../Modules/Fight/FightPointPassMainPanel.lua | 1 - .../FindTreasure/FindTreasureManager.lua | 35 +++++++++---------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua index 85bcf1bb3c..b79a9bd9f8 100644 --- a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua @@ -218,7 +218,6 @@ function FightPointPassMainPanel:InitComponent() this.btnFindTreasureImage = Util.GetGameObject(self.gameObject, "Bg/RightUpVertical/btnFindTreasure/Button/RadarBG"):GetComponent("Image") this.btnFindTreasureText = Util.GetGameObject(self.gameObject, "Bg/RightUpVertical/btnFindTreasure/Image/num"):GetComponent("Text") this.btnFindTreasureredPoint = Util.GetGameObject(self.gameObject, "Bg/RightUpVertical/btnFindTreasure/redPoint") - Util.GetGameObject(self.gameObject, "Bg/RightUpVertical/btnFindTreasure"):SetActive(false) --逍遥游入口 this.btnXiaoYao=Util.GetGameObject(self.gameObject,"Bg/RightUpVertical/xiaoyaoBtn") this.btnXiaoYao:GetComponent("Image").sprite=this.spLoader:LoadSprite("x_xiaoyaoyou_daanniu_zh") diff --git a/Assets/ManagedResources/~Lua/Modules/FindTreasure/FindTreasureManager.lua b/Assets/ManagedResources/~Lua/Modules/FindTreasure/FindTreasureManager.lua index 4be3366898..280f94affa 100644 --- a/Assets/ManagedResources/~Lua/Modules/FindTreasure/FindTreasureManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/FindTreasure/FindTreasureManager.lua @@ -30,24 +30,23 @@ function this.RefreshUsedTimes() Game.GlobalEvent:DispatchEvent(GameEvent.FindTreasure.RefreshFindTreasure,true) end function this.RefreshFindTreasureRedPoint() - --屏蔽疯体寻宝红点 - -- if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.FINDTREASURE) then - -- return false - -- end - -- TaskManager.SetFindTreasureDataState() - -- local missionInfo = TaskManager.GetTypeTaskList(TaskTypeDef.FindTreasure) - -- for i = 1, #missionInfo do - -- if missionInfo[i].state == 1 then - -- return true - -- end - -- end - -- local mazeTreasureMax = ConfigManager.GetConfigData(ConfigName.PlayerLevelConfig,PlayerManager.level).MazeTreasureMax - -- if BagManager.GetItemCountById(FindTreasureManager.materialItemId) >= mazeTreasureMax then - -- return true - -- end - -- if this.GetShowFindTreasureVipRedPoint() then - -- return true - -- end + if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.FINDTREASURE) then + return false + end + TaskManager.SetFindTreasureDataState() + local missionInfo = TaskManager.GetTypeTaskList(TaskTypeDef.FindTreasure) + for i = 1, #missionInfo do + if missionInfo[i].state == 1 then + return true + end + end + local mazeTreasureMax = ConfigManager.GetConfigData(ConfigName.PlayerLevelConfig,PlayerManager.level).MazeTreasureMax + if BagManager.GetItemCountById(FindTreasureManager.materialItemId) >= mazeTreasureMax then + return true + end + if this.GetShowFindTreasureVipRedPoint() then + return true + end return false end function this.SetShowFindTreasureVipRedPoint(isShow)