2023-07-15 02:35:33 +07:00
|
|
|
----------------------------------------------------------------
|
2024-09-01 22:49:41 +02:00
|
|
|
--主界面邮件红点
|
2023-07-15 02:35:33 +07:00
|
|
|
local XRedPointConditionMainMail = {}
|
|
|
|
local SubConditions = nil
|
|
|
|
|
|
|
|
function XRedPointConditionMainMail.GetSubConditions()
|
2024-09-01 22:49:41 +02:00
|
|
|
SubConditions = SubConditions or {
|
|
|
|
XRedPointConditions.Types.CONDITION_MAIL_PERSONAL,
|
|
|
|
XRedPointConditions.Types.CONDITION_MAIL_FAVORITE,
|
|
|
|
XRedPointConditions.Types.CONDITION_MAIL_FAVORITE_BOX
|
|
|
|
}
|
2023-07-15 02:35:33 +07:00
|
|
|
return SubConditions
|
|
|
|
end
|
|
|
|
|
|
|
|
function XRedPointConditionMainMail.Check()
|
2024-09-01 22:49:41 +02:00
|
|
|
---@type XMailAgency
|
|
|
|
local mailAgency = XMVCA:GetAgency(ModuleId.XMail)
|
|
|
|
return mailAgency:GetHasUnDealMail() + XRedPointConditionMailFavoriteBox.Check() + XRedPointConditionMailFavorite.Check()
|
2023-07-15 02:35:33 +07:00
|
|
|
end
|
|
|
|
|
|
|
|
return XRedPointConditionMainMail
|