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 |