MES模块添加公告图标
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user