PGRData/Script/matrix/xredpoint/xredpointconditions/XRedPointConditionMainMail.lua
2024-09-01 22:49:41 +02:00

21 lines
No EOL
752 B
Lua

----------------------------------------------------------------
--主界面邮件红点
local XRedPointConditionMainMail = {}
local SubConditions = nil
function XRedPointConditionMainMail.GetSubConditions()
SubConditions = SubConditions or {
XRedPointConditions.Types.CONDITION_MAIL_PERSONAL,
XRedPointConditions.Types.CONDITION_MAIL_FAVORITE,
XRedPointConditions.Types.CONDITION_MAIL_FAVORITE_BOX
}
return SubConditions
end
function XRedPointConditionMainMail.Check()
---@type XMailAgency
local mailAgency = XMVCA:GetAgency(ModuleId.XMail)
return mailAgency:GetHasUnDealMail() + XRedPointConditionMailFavoriteBox.Check() + XRedPointConditionMailFavorite.Check()
end
return XRedPointConditionMainMail