PGRData/Resources/Scripts/XRedPoint/XRedPointConditions/XRedPointConditionArchiveAwareness.lua
2022-12-26 14:06:01 +05:30

23 lines
No EOL
780 B
Lua

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