欢迎来到《魔法使的约定》中文WIKI - 当前用户未登录
WIKI建设交流群:578085100;日服游戏交流群:821895698;中文服游戏交流群:790127155
全站通知:
模块:BirthdayRender
刷
历
编
跳到导航
跳到搜索
此模块的文档可以在模块:BirthdayRender/doc创建
local p = {}
local birthday_map = {
[1] = {"Faust"},
[2] = {"Mithra", "Murr"},
[3] = {"Arthur", "Rustica"},
[4] = {"Oz", "Shino"},
[5] = {"Snow", "White", "Lennox"},
[6] = {"Figaro", "Heathcliff"},
[7] = {"Rutile"},
[8] = {"Cain"},
[9] = {"Nero"},
[10] = {"Riquet", "Shylock"},
[11] = {"Owen", "Chloe"},
[12] = {"Bradley", "Mitile"},
}
function p.renderCurrentMonth()
local month = tonumber(os.date("%m"))
local names = birthday_map[month]
if not names then return "" end
local content = string.format('%d月过生日的魔法使:', month)
for _, name in ipairs(names) do
content = content .. string.format('<span style="display:inline-block;white-space:nowrap">%s[[File:minitalking_icon_%s.png|30px|link=%s]]</span>', name, string.lower(name), name)
-- content = content .. string.format('%s[[File:minitalking_icon_%s.png|30px|link=%s]]', name, string.lower(name), name)
end
return content
end
return p

沪公网安备 31011002002714 号