forked from endernon/PGRData
16 lines
No EOL
465 B
Lua
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 |