1,448
个编辑
小 (try 1) |
小 (try 2) |
||
第47行: | 第47行: | ||
local board={[0]="light",[1]="conflict"} | local board={[0]="light",[1]="conflict"} | ||
if info["bg"]=="" then info["bg"] = "base_"..board[info["side"]] | if info["bg"]=="" then info["bg"] = "base_"..board[info["side"]] | ||
else-- aterlbus | |||
p.cfg["bgOverride"]=info["difficulties"][3]["bg"] | p.cfg["bgOverride"]=info["difficulties"][3]["bg"] | ||
end | end | ||
第62行: | 第62行: | ||
local function JacketFilter(info) | local function JacketFilter(info) | ||
if info["jacket_localized"] then-- solitarydream | if opChain(function ()return info["difficulties"][4]["jacketOverride"] end) then | ||
cfgPush("jacketOverride","byd") | |||
p.cfg.jacketDesigner=info["difficulties"][4]["jacketDesigner"] | |||
elseif info["difficulties"][1]["jacketOverride"] then-- stager, avril, lanota2 | |||
cfgPush("jacketOverride","pstprs") | |||
elseif info["jacket_localized"] then-- solitarydream | |||
cfgPush("jacketOverride","lang") | cfgPush("jacketOverride","lang") | ||
elseif info["difficulties"][3]["jacket_night"] then-- melodyoflove | |||
cfgPush("jacketOverride","sunset") | cfgPush("jacketOverride","sunset") | ||
end | end | ||
return info | return info | ||
第99行: | 第97行: | ||
local Mobile = QuerySong(LoadJson("Songlist"),args['曲名'],args['id'],BGFilter,TitleFilter,JacketFilter,AudioFilter) | local Mobile = QuerySong(LoadJson("Songlist"),args['曲名'],args['id'],BGFilter,TitleFilter,JacketFilter,AudioFilter) | ||
local NS = QuerySong(LoadJson("Songlist NS"),args['曲名'],args['id'],NSBydFilter,BGFilter,TitleFilter,JacketFilter) | local NS = QuerySong(LoadJson("Songlist NS"),args['曲名'],args['id'],NSBydFilter,BGFilter,TitleFilter,JacketFilter) | ||
Mobile.__config.version=string. | Mobile.__config.version=string.match( | ||
W.getCurrentFrame():expandTemplate{ title = ":版本更新日志" }, | W.getCurrentFrame():expandTemplate{ title = ":版本更新日志" }, | ||
"( | "(v%d%.%d%d?%.%d%d?)%s*|%s*" .. W.language.getContentLanguage():formatDate("Y%.n%.j","@"..Mobile["date"]) .. "%D") | ||
local main=Mobile or NS | local main=Mobile or NS | ||
if Mobile and NS then | if Mobile and NS then | ||
-- | -- | ||
end | end | ||
return W.text.jsonEncode({Mobile=Mobile, NS=NS, args=args | return W.text.jsonEncode({Mobile=Mobile, NS=NS, args=args},W.text.JSON_PRETTY) | ||
end | end | ||
return p | return p |
个编辑