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

16 lines
465 B
Lua
Raw Normal View History

2024-09-01 20:49:41 +00:00
local XRedPointConditionSubMenuNewSystem = {}
function XRedPointConditionSubMenuNewSystem.Check()
local list = XUiConfigs.GetSystemSubMenuList()
for _, config in ipairs(list or {}) do
local conditions = config.RedPointCondition
local state = XRedPointManager.CheckConditions(conditions, config.RedPointParam)
if state then
return true
end
end
return false
end
return XRedPointConditionSubMenuNewSystem