【优化】跨服战红点跨天后不显示,完成所有操作后红点不消失,需要重新进入

dev_chengFeng
ZhangBiao 2021-10-29 13:28:04 +08:00
parent c1f3658da4
commit 5d15c33605
3 changed files with 6 additions and 7 deletions

View File

@ -68,10 +68,10 @@ function this.RefreshPanel()
elseif nodeType == ExpeditionNodeType.Resurgence then--复活节点
this.titleText.text=Language[11549]
if nodeState == ExpeditionNodeState.No then
this.content.text = "炼丹炉中炼制着一颗百转大还丹可随机复活一名阵亡的神将。如果没有阵亡的神将则使一名随机神将恢复至满生命值。"
this.content.text = "炼丹炉中炼制着一颗百转大还丹,可随机复活一名阵亡的神将。如果没有阵亡的神将,则使一名随机神将恢复至满生命值。"
this.goBtnText.text = Language[10732]
elseif nodeState == ExpeditionNodeState.NoPass then
this.content.text = "炼丹炉中炼制着一颗百转大还丹可随机复活一名阵亡的神将。如果没有阵亡的神将则使一名随机神将恢复至满生命值。"
this.content.text = "炼丹炉中炼制着一颗百转大还丹,可随机复活一名阵亡的神将。如果没有阵亡的神将,则使一名随机神将恢复至满生命值。"
this.goBtnText.text = Language[10019]
end
end

View File

@ -25,11 +25,8 @@ function this.Initialize()
this.battleResult = {}
-- 特权刷新时,刷新红点
Game.GlobalEvent:AddEvent(GameEvent.Privilege.OnPrivilegeUpdate, function(PrivilegeId)
if PrivilegeId == 3201 then
-- 检测七界试炼红点
CheckRedPointStatus(RedPointType.QiJieShiLian)
end
Game.GlobalEvent:AddEvent(GameEvent.Privilege.OnPrivilegeZeroUpdate, function()
CheckRedPointStatus(RedPointType.QiJieShiLian)
end)
end
@ -369,6 +366,7 @@ function this.CheckQiJieRedPoint()
end
local bool1 = this.CheckQiJieTreasureRedPoint()
local bool2 = PrivilegeManager.GetPrivilegeRemainValue(3201) > 0 and true or false
LogError("七界红点检测:(秘宝:)"..tostring(bool1).." (特权:)"..tostring(bool2))
return bool1 or bool2
-- end)
end

View File

@ -189,6 +189,7 @@ end
function QiJieShiLianPanel:Refresh()
self.qijieData = QiJieShiLianManager.GetQiJieData()
CheckRedPointStatus(RedPointType.QiJieShiLian)
self.configData = self.qijieData.curStageData
Log("七界试炼当前层数Id:"..tostring(QiJieShiLianManager.curLevelId).." 最大层数Id:"..tostring(QiJieShiLianManager.curMaxStage))
local num = tonumber(ConfigManager.GetConfigData(ConfigName.SpecialConfig,128).Value)