MES模块添加公告图标

This commit is contained in:
MrZ626
2021-06-14 19:59:47 +08:00
parent c17865d777
commit e7bfc8335e
3 changed files with 12 additions and 4 deletions

View File

@@ -416,10 +416,10 @@ function NET.updateWS_app()
if VERSION.code<res.newestCode then
MES.new('warn',text.oldVersion:gsub("$1",res.newestName),3)
end
MES.new('info',res.notice,5)
MES.new('broadcast',res.notice,5)
NET.tryLogin(true)
elseif res.action==0 then--Broadcast
MES.new('info',res.data.message,5)
MES.new('broadcast',res.data.message,5)
elseif res.action==1 then--Get notice
--?
elseif res.action==2 then--Register

View File

@@ -303,6 +303,7 @@ local commands={}do
if
arg=='check'or
arg=='info'or
arg=='broadcast'or
arg=='warn'or
arg=='error'
then
@@ -310,7 +311,7 @@ local commands={}do
else
log{C.A,"Show a message on the up-left corner"}
log""
log{C.A,"Usage: mes <check|info|warn|error> [message]"}
log{C.A,"Usage: mes <check|info|broadcast|warn|error> [message]"}
end
end,
description="Show a message",