屏蔽挂机界面寻宝入口显示及红点检测
parent
3d5ed9271e
commit
374e6d80cd
|
@ -218,6 +218,7 @@ function FightPointPassMainPanel:InitComponent()
|
||||||
this.btnFindTreasureImage = Util.GetGameObject(self.gameObject, "Bg/RightUpVertical/btnFindTreasure/Button/RadarBG"):GetComponent("Image")
|
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.btnFindTreasureText = Util.GetGameObject(self.gameObject, "Bg/RightUpVertical/btnFindTreasure/Image/num"):GetComponent("Text")
|
||||||
this.btnFindTreasureredPoint = Util.GetGameObject(self.gameObject, "Bg/RightUpVertical/btnFindTreasure/redPoint")
|
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=Util.GetGameObject(self.gameObject,"Bg/RightUpVertical/xiaoyaoBtn")
|
||||||
this.btnXiaoYao:GetComponent("Image").sprite=this.spLoader:LoadSprite("x_xiaoyaoyou_daanniu_zh")
|
this.btnXiaoYao:GetComponent("Image").sprite=this.spLoader:LoadSprite("x_xiaoyaoyou_daanniu_zh")
|
||||||
|
|
|
@ -30,23 +30,24 @@ function this.RefreshUsedTimes()
|
||||||
Game.GlobalEvent:DispatchEvent(GameEvent.FindTreasure.RefreshFindTreasure,true)
|
Game.GlobalEvent:DispatchEvent(GameEvent.FindTreasure.RefreshFindTreasure,true)
|
||||||
end
|
end
|
||||||
function this.RefreshFindTreasureRedPoint()
|
function this.RefreshFindTreasureRedPoint()
|
||||||
if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.FINDTREASURE) then
|
--屏蔽疯体寻宝红点
|
||||||
return false
|
-- if not ActTimeCtrlManager.SingleFuncState(FUNCTION_OPEN_TYPE.FINDTREASURE) then
|
||||||
end
|
-- return false
|
||||||
TaskManager.SetFindTreasureDataState()
|
-- end
|
||||||
local missionInfo = TaskManager.GetTypeTaskList(TaskTypeDef.FindTreasure)
|
-- TaskManager.SetFindTreasureDataState()
|
||||||
for i = 1, #missionInfo do
|
-- local missionInfo = TaskManager.GetTypeTaskList(TaskTypeDef.FindTreasure)
|
||||||
if missionInfo[i].state == 1 then
|
-- for i = 1, #missionInfo do
|
||||||
return true
|
-- if missionInfo[i].state == 1 then
|
||||||
end
|
-- return true
|
||||||
end
|
-- end
|
||||||
local mazeTreasureMax = ConfigManager.GetConfigData(ConfigName.PlayerLevelConfig,PlayerManager.level).MazeTreasureMax
|
-- end
|
||||||
if BagManager.GetItemCountById(FindTreasureManager.materialItemId) >= mazeTreasureMax then
|
-- local mazeTreasureMax = ConfigManager.GetConfigData(ConfigName.PlayerLevelConfig,PlayerManager.level).MazeTreasureMax
|
||||||
return true
|
-- if BagManager.GetItemCountById(FindTreasureManager.materialItemId) >= mazeTreasureMax then
|
||||||
end
|
-- return true
|
||||||
if this.GetShowFindTreasureVipRedPoint() then
|
-- end
|
||||||
return true
|
-- if this.GetShowFindTreasureVipRedPoint() then
|
||||||
end
|
-- return true
|
||||||
|
-- end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
function this.SetShowFindTreasureVipRedPoint(isShow)
|
function this.SetShowFindTreasureVipRedPoint(isShow)
|
||||||
|
|
Loading…
Reference in New Issue