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

21 lines
752 B
Lua
Raw Normal View History

----------------------------------------------------------------
2024-09-01 20:49:41 +00:00
--主界面邮件红点
local XRedPointConditionMainMail = {}
local SubConditions = nil
function XRedPointConditionMainMail.GetSubConditions()
2024-09-01 20:49:41 +00:00
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()
2024-09-01 20:49:41 +00:00
---@type XMailAgency
local mailAgency = XMVCA:GetAgency(ModuleId.XMail)
return mailAgency:GetHasUnDealMail() + XRedPointConditionMailFavoriteBox.Check() + XRedPointConditionMailFavorite.Check()
end
return XRedPointConditionMainMail