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

26 lines
No EOL
906 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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