添加log模块,用于代替之前缺少音频文件弹出的消息框

也给缺少图片和加载错误语言等地方添加了日志
控制台添加log命令输出日志
This commit is contained in:
MrZ626
2021-09-22 09:30:18 +08:00
parent 48c9bd6dfd
commit 56cbe4c5b6
8 changed files with 52 additions and 9 deletions

View File

@@ -341,6 +341,20 @@ local commands={}do
"Usage: mes <check|info|warn|error>",
},
}
commands.log={
code=function()
local l=LOG.logs
for i=1,#l do
log(l[i])
end
end,
description="Show the logs",
details={
"Show the logs",
"",
"Usage: log",
},
}
commands.openurl={
code=function(url)
if url~=""then