PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionArchiveAwareness.lua

23 lines
780 B
Lua
Raw Normal View History

--
-- Author: wujie
-- Note: 图鉴意识红点
local XRedPointConditionArchiveAwareness = {}
local Events = nil
function XRedPointConditionArchiveAwareness.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XEventId.EVENET_ARCHIVE_NEW_AWARENESS_SUIT),
XRedPointEventElement.New(XEventId.EVENET_ARCHIVE_UNLOCK_AWARENESS_SUIT),
XRedPointEventElement.New(XEventId.EVENET_ARCHIVE_UNLOCK_AWARENESS_SETTING),
}
return Events
end
function XRedPointConditionArchiveAwareness.Check()
return (XDataCenter.ArchiveManager.IsHaveNewAwarenessSuit() or XDataCenter.ArchiveManager.IsHaveNewAwarenessSetting())
and XFunctionManager.JudgeCanOpen(XFunctionManager.FunctionName.Archive)
end
return XRedPointConditionArchiveAwareness