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

26 lines
906 B
Lua
Raw Normal View History

2024-09-01 22:49:41 +02:00
local XRedPointConditionUiSceneSetting={}
function XRedPointConditionUiSceneSetting.Check()
--todo remove: 2.5,2.6屏蔽2.7开放后再移除启用
if true then
return false
end
--end remove
--检查已拥有的场景是否未使用过或未预览过
local scenes=XDataCenter.PhotographManager.GetSceneIdList()
for index, sceneId in ipairs(scenes) do
if XDataCenter.PhotographManager.CheckSceneIsHaveById(sceneId) then
local state=XSaveTool.GetData(XDataCenter.PhotographManager.GetSceneStateKey(sceneId))
local sceneTemplate = XDataCenter.PhotographManager.GetSceneTemplateById(sceneId)
--state==1表示预览过2表示使用过
if not state and sceneTemplate.IsFree==0 then
return true
end
end
end
return false
end
return XRedPointConditionUiSceneSetting