◆少前百科是非盈利性、非官方的少女前线维基百科。
◆如果您发现某些内容错误/空缺,请勇于修正/添加!参与进来其实很容易!点这里 加入少前百科
◆有任何意见、建议、纠错,欢迎在 GFwiki:反馈与建议 提出和讨论。编辑事务讨论QQ群:597764980,微博@GFwiki少前百科
◆To foreigners,You can use twitter to contact us.
Icon Nyto Silver.png

更改

跳转至: 导航搜索

模块:Gun info

添加272字节2023年5月11日 (四) 14:36
无编辑摘要
if moddata then
local moditem = menu:tag('li')
:attr('data-skincode', guncode .. 'Mod'):wikitext('心智升级')
local l2dmod = {[55] = 1, [56] = 1, [57] = 1, [65] = 1, [101] = 1,
[103] = 1, [122] = 1, [143] = 1}
if l2dmod[gundata.id] then moditem:addClass('live2d1') :wikitext( '<div></div><div><span>心智升级</span></div><div class="live2d1"></div>') else moditem:wikitext('心智升级') end
end
for _, v in ipairs(gundata.skins) do
local skincode = guncode .. '_' .. tostring(v)
local skinclass = classdata[skin.class_id]
local item = menu:tag('li'):attr('data-skincode', skincode) local tdiv = item:tag('div') if skinclass then tdiv:addClass('theme' .. tostring(skinclass.theme_type)) end local scdiv = item:tag('div') scdiv:tag('span'):wikitext(skin.name) if skinclass then itemscdiv:tag('span'):wikitext(skinclass.name)end local ldiv = item:addClasstag('themediv' .. tostring(skinclass.theme_type)) end local skintype = tostring(skin['type'] item:attr('data-skincode', skincode) if skintype ~= 0 'nil' then item:addClass('live2d' .. tostringskintype) ldiv:addClass('live2d' .. skintype))
end
end

导航菜单