Revert "屏蔽挂机界面寻宝入口显示及红点检测"

This reverts commit 374e6d80cd.
dev_fengTi_And
PC-202302260912\Administrator 2023-07-14 11:27:34 +08:00
parent 2987bc24a2
commit eafdbd9f44
2 changed files with 17 additions and 19 deletions

View File

@ -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")

View File

@ -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)