Module:Songtable:修订间差异

添加151字节 、​ 2021年5月22日 (星期六)
无编辑摘要
无编辑摘要
无编辑摘要
第81行: 第81行:
if args['Beyond等级'] or data('bydRating') then byd=true else byd=false end
if args['Beyond等级'] or data('bydRating') then byd=true else byd=false end
local pstCd,prsCd,ftrCd,bydCd
local getChartDesigner={
if args['note编写'] then
[1]={ 'mobile' , 'PastNote编写' , 'note编写' , 'pstChartDesigner' },
pstCd,prsCd,ftrCd,bydCd=args['note 编写'],args['note编写'],args['note 编写'],args['note编写']
[2]={ 'mobile' , 'PresentNote编写' , 'note编写' , 'prsChartDesigner' },
else
[3]={ 'mobile' , 'FutureNote 编写' , 'note编写' , 'ftrChartDesigner' },
if args['FutureNote 编写'] then
[4]={ 'mobile' , 'BeyondNote 编写' , 'note编写' , 'bydChartDesigner' },
pstCd,prsCd,ftrCd,bydCd=args['PastNote 编写'],args['PresentNote 编写'],args['FutureNote编写'],args['BeyondNote 编写']
[5]={ 'ns' , 'PastNote 编写' , 'note编写' , 'pstChartDesigner' },
[6]={ 'ns' , 'PresentNote 编写' , 'note 编写' , 'prsChartDesigner' },
[7]={ 'ns' , 'FutureNote编写' , 'note 编写' , 'ftrChartDesigner' },
}
local chartDesigner={}
for i,k in ipairs(getChartDesigner)
do
if args[k[2]]
then
chartDesigner[i]=args[k[2]]
else
else
pstCd,prsCd,ftrCd,bydCd=data('pstChartDesigner'),data('prsChartDesigner'),data('ftrChartDesigner'),data('bydChartDesigner')
if args[k[3]]
then
chartDesigner[i]=args[k[3]]
else
if chartDesigner[i-1]
then
chartDesigner[i]=chartDesigner[i-1]
else
if k[1]=='mobile'
then
chartDesigner[i]=data(k[4])
else
chartDesigner[i]=dataNs(k[4])
end
end
end
end
end
end
end
local span
local span,spanNs
if byd then
if byd then
span=merge({ pstCd,prsCd,ftrCd,bydCd })
span=merge({ chartDesigner[1],chartDesigner[2],chartDesigner[3],chartDesigner[4] })
else
else
span=merge({ pstCd,prsCd,ftrCd })
span=merge({ chartDesigner[1],chartDesigner[2],chartDesigner[3] })
end
local pstCdNs,prsCdNs,ftrCdNs,bydCdNs
if args['note编写NS'] then
pstCdNs,prsCdNs,ftrCdNs=args['note编写'],args['note编写'],args['note编写']
else
if args['PastNote编写NS'] and args['PresentNote编写NS'] and args['FutureNote编写NS'] then
pstCdNs,prsCdNs,ftrCdNs=args['PastNote编写NS'],args['PresentNote编写NS'],args['FutureNote编写NS']
else
pstCdNs,prsCdNs,ftrCdNs=dataNs('pstChartDesigner'),dataNs('prsChartDesigner'),dataNs('ftrChartDesigner')
end
end
end
local spanNs=merge({ pstCdNs,prsCdNs,ftrCdNs })
spanNs=merge({ chartDesigner[5],chartDesigner[6],chartDesigner[7] })
local infoList={
local infoList={
第149行: 第163行:
},
},
[13]={
[13]={
' 触控和手柄  谱面信息','',{ ['id']='all-play-header' , ['class']='header' }
'谱面信息(双模式)','',{ ['id']='all-play-header' , ['class']='header' }
},
},
[14]={
[14]={
' 触控  谱面信息','',{ ['id']='mobile-play-header' , ['class']='header' }
'谱面信息(触控)','',{ ['id']='mobile-play-header' , ['class']='header' }
},
},
[15]={
[15]={
第203行: 第217行:
},
},
[31]={
[31]={
pstCd,data('pstChartDesigner'),{ ['class']='pst-data' },span[1]
chartDesigner[1],data('pstChartDesigner'),{ ['class']='pst-data' },span[1]
},
},
[32]={
[32]={
prsCd,data('prsChartDesigner'),{ ['class']='prs-data' },span[2]
chartDesigner[2],data('prsChartDesigner'),{ ['class']='prs-data' },span[2]
},
},
[33]={
[33]={
ftrCd,data('ftrChartDesigner'),{ ['class']='ftr-data' },span[3]
chartDesigner[3],data('ftrChartDesigner'),{ ['class']='ftr-data' },span[3]
},
},
[34]={
[34]={
bydCd,data('bydChartDesigner'),{ ['class']='byd-data' },span[4]
chartDesigner[4],data('bydChartDesigner'),{ ['class']='byd-data' },span[4]
},
},
[35]={
[35]={
'NS版手柄  谱面信息','',{ ['class']='header ns',['id']='ns-play-header' }
'谱面信息(joy-con)','',{ ['class']='header ns',['id']='ns-play-header' }
},
},
[36]={
[36]={
第245行: 第259行:
},
},
[45]={
[45]={
args['Beyond等级NS'],dataNs('bydRating'),{ ['class']='byd-data ns' }
' ','',{ ['class']='byd-data ns' }
},
},
[46]={
[46]={
第266行: 第280行:
},
},
[52]={
[52]={
pstCdNs,dataNs('pstChartDesigner'),{ ['class']='pst-data ns' },spanNs[1]
chartDesigner[5],dataNs('pstChartDesigner'),{ ['class']='pst-data ns' },spanNs[1]
},
},
[53]={
[53]={
prsCdNs,dataNs('prsChartDesigner'),{ ['class']='prs-data ns' },spanNs[2]
chartDesigner[6],dataNs('prsChartDesigner'),{ ['class']='prs-data ns' },spanNs[2]
},
},
[54]={
[54]={
frtCdNs,dataNs('ftrChartDesigner'),{ ['class']='ftr-data ns' },spanNs[3]
chartDesigner[7],dataNs('ftrChartDesigner'),{ ['class']='ftr-data ns' },spanNs[3]
},
},
[55]={
[55]={