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

16 lines
No EOL
465 B
Lua

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