2023-07-14 19:35:33 +00:00
|
|
|
----------------------------------------------------------------
|
2024-09-01 20:49:41 +00:00
|
|
|
--主界面邮件红点
|
2023-07-14 19:35:33 +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
|
|
|
|
}
|
2023-07-14 19:35:33 +00:00
|
|
|
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()
|
2023-07-14 19:35:33 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
return XRedPointConditionMainMail
|