From 4d3d00bc58db8ff6ce2550650148c90b7acb3b1d Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 27 Jun 2021 19:01:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8F=B0=E7=A7=BB=E9=99=A4wa?= =?UTF-8?q?rn=E5=92=8Cerror=E5=91=BD=E4=BB=A4=EF=BC=8C=E4=BF=AE=E6=94=B9me?= =?UTF-8?q?s=E5=91=BD=E4=BB=A4=E8=AF=B4=E6=98=8E=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9crash=E5=91=BD=E4=BB=A4=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/app_console.lua | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/parts/scenes/app_console.lua b/parts/scenes/app_console.lua index 77ed85cf..648b2d40 100644 --- a/parts/scenes/app_console.lua +++ b/parts/scenes/app_console.lua @@ -295,7 +295,7 @@ local commands={}do --System commands.crash={ - code=error, + code=function()error("ERROR")end, description="Manually crash the game", } commands.mes={ @@ -311,24 +311,16 @@ local commands={}do else log{C.A,"Show a message on the up-left corner"} log"" - log{C.A,"Usage: mes [message]"} + log{C.A,"Usage: mes "} end end, description="Show a message", details={ "Show a message on the up-left corner", "", - "Usage: mes [message]", + "Usage: mes ", }, } - commands.warn={ - code=function(str)MES.new('warn',str,6)end, - description="Show a warn message", - } - commands.error={ - code=function(str)MES.new('error',str,6)end, - description="Show an error message", - } commands.openurl={ code=function(url) if url~=""then