神尊红点bug修改

yuanshuai 2022-11-10 13:52:48 +08:00
parent 8533fb9a4d
commit 83df159d3f
2 changed files with 8 additions and 0 deletions

View File

@ -1313,6 +1313,9 @@ function this:OnShow()
JumpServerManager.CheckJumpServerhightLadderMainCityRedPoint()
--检测鸿蒙碑红点
HarmonyManager.CheckRedPoinStatusUpTowerMainCityRed()
--设置神尊特权红点
this.shenzunRedPoint:SetActive(BagManager.GetItemCountById(15)>=10)
--山河试炼红点
CheckRedPointStatus(RedPointType.FightLevelTrial)
CheckRedPointStatus(RedPointType.MingWangPri)

View File

@ -15,6 +15,7 @@ function this:InitComponent()
this.progressBar=Util.GetGameObject(self.gameObject, "topLayout/progress/progressBar"):GetComponent("Image")
this.progressValue=Util.GetGameObject(self.gameObject, "topLayout/progress/value"):GetComponent("Text")
this.exchangeBtn=Util.GetGameObject(self.gameObject, "topLayout/exchangeBtn")
this.exchangeRedPoint=Util.GetGameObject(self.gameObject, "topLayout/exchangeBtn/redPoint")
this.tabGrid=Util.GetGameObject(self.gameObject, "layout/tabScroll/grid")
this.tabBtnPre=Util.GetGameObject(self.gameObject, "layout/tabBtnPre")
this.selectBtn=Util.GetGameObject(self.gameObject, "layout/tabSelectBtn")
@ -83,6 +84,10 @@ function this:RemoveListener()
end
function this.UpdateTopInfo()
--刷新兑换红点
local costPropNum=BagManager.GetItemCountById(15)
this.exchangeRedPoint:SetActive(costPropNum>=10)
curLv=GetShenzunLv()
local expNum=BagManager.GetItemCountById(1352)
local prestigeConfig=ConfigManager.GetConfigDataByDoubleKey(ConfigName.PrestigeConfig,"Type",1,"Level",curLv)