LLWiki正在建设中,欢迎加入我们

“模块:Lyrics”的版本间差异

跳转到导航 跳转到搜索
end --因为连接过程需要转换文字,所以不使用join或listToText。
end
result=result.."\" class=\"Lyrics_gradient"
result=result.."\" class=\"Lyrics_gradient\" style=\"background-image:-webkit-linear-gradient(left," -- Lyrics_gradient类会添加CSS样式:"-webkit-background-clip:text;background-clip:text;-webkit-box-decoration-break:clone;-webkit-text-fill-color:transparent;text-fill-color:transparent;"
for k,name in ipairs(names) do
result=result..((' '..name..'-lyrics') or '') --与上面的类似,加入class
end
result=result.."\" class=\"Lyrics_gradient\" style=\"background-image:-webkit-linear-gradient(left," -- Lyrics_gradient类会添加CSS样式:"-webkit-background-clip:text;background-clip:text;-webkit-box-decoration-break:clone;-webkit-text-fill-color:transparent;text-fill-color:transparent;"
for k,name in ipairs(names) do
result=result..(colors[name] or 'black') --与上面的类似,加入各颜色。如果颜色不存在,则为黑色。
return result..");\">"..module.langQuote(text, lang).."</span>"
else --如果颜色标识中没有逗号,则说明只有一位角色,直接上色。
return "<span lang=\""..lang.."\" class=\"Lyrics_single"..((' '..string.lower(names)..'-lyrics') or '').."\" title=\""..(fullnames[string.lower(names)] or '').."\" style=\"color:"..(colors[string.lower(names)] or 'black')..";\">"..module.langQuote(text, lang).."</span>"
end
end