6,354
个编辑
(修复bydBg项bug,添加ftrBg项) 标签:已被回退 |
(添加全bg读取支持) 标签:已被回退 |
||
第180行: | 第180行: | ||
if info["difficulties"][3] then | if info["difficulties"][3] then | ||
return info["difficulties"][3]['has_controller_alt_chart'] | return info["difficulties"][3]['has_controller_alt_chart'] | ||
end | end | ||
end, | end, | ||
第190行: | 第185行: | ||
if info["difficulties"][4] then | if info["difficulties"][4] then | ||
return info["difficulties"][4]['audioOverride'] | return info["difficulties"][4]['audioOverride'] | ||
end | end | ||
end, | end, | ||
第205行: | 第195行: | ||
if info["difficulties"][4] then | if info["difficulties"][4] then | ||
return info["difficulties"][4]['artist'] | return info["difficulties"][4]['artist'] | ||
end | |||
end, | |||
["pstBg"] = function() | |||
if info["difficulties"][1] and info["difficulties"][1]['bg'] then | |||
return info["difficulties"][1]['bg'] | |||
else | |||
if info["bg"] ~= "" then | |||
return info["bg"] | |||
else | |||
if info["side"] == 0 then | |||
return 'base_light' | |||
else | |||
return 'base_conflict' | |||
end | |||
end | |||
end | |||
end, | |||
["prsBg"] = function() | |||
if info["difficulties"][2] and info["difficulties"][2]['bg'] then | |||
return info["difficulties"][2]['bg'] | |||
else | |||
if info["bg"] ~= "" then | |||
return info["bg"] | |||
else | |||
if info["side"] == 0 then | |||
return 'base_light' | |||
else | |||
return 'base_conflict' | |||
end | |||
end | |||
end | |||
end, | |||
["ftrBg"] = function() | |||
if info["difficulties"][3] and info["difficulties"][3]['bg'] then | |||
return info["difficulties"][3]['bg'] | |||
else | |||
if info["bg"] ~= "" then | |||
return info["bg"] | |||
else | |||
if info["side"] == 0 then | |||
return 'base_light' | |||
else | |||
return 'base_conflict' | |||
end | |||
end | |||
end | |||
end, | |||
["bydBg"] = function() | |||
if info["difficulties"][4] and info["difficulties"][4]['bg'] then | |||
return info["difficulties"][4]['bg'] | |||
else | |||
if info["bg"] ~= "" then | |||
return info["bg"] | |||
else | |||
if info["side"] == 0 then | |||
return 'base_light' | |||
else | |||
return 'base_conflict' | |||
end | |||
end | |||
end | end | ||
end | end |