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

22 lines
No EOL
625 B
Lua

----------------------------------------------------------------
--是否查阅过收藏盒界面
local XRedPointConditionMailFavoriteBox = {}
local Events = nil
function XRedPointConditionMailFavoriteBox.GetSubEvents()
Events = Events or
{
XRedPointEventElement.New(XAgencyEventId.EVENT_COLLECTION_BOX_VIEW),
}
return Events
end
function XRedPointConditionMailFavoriteBox.Check()
---@type XMailAgency
local mailAgency = XMVCA:GetAgency(ModuleId.XMail)
if mailAgency:GetUICollectBoxViewedRedPoint() then
return 1
end
return 0
end
return XRedPointConditionMailFavoriteBox