LOG.print取消"short"输出方式

This commit is contained in:
MrZ626
2020-09-10 01:00:45 +08:00
parent 2b3198b4dc
commit aa9dca918d
2 changed files with 5 additions and 8 deletions

View File

@@ -46,9 +46,7 @@ end
function LOG.print(text,T,C)--type/time,color function LOG.print(text,T,C)--type/time,color
local time local time
local his local his
if type(T)=="table"then if T=="warn"then
C,T=T or color.white
elseif T=="warn"then
C=C or color.yellow C=C or color.yellow
his=true his=true
time=180 time=180
@@ -59,19 +57,18 @@ function LOG.print(text,T,C)--type/time,color
elseif T=="message"then elseif T=="message"then
C=C or color.green C=C or color.green
his=true his=true
elseif T=="short"then
C=C or color.orange
time=20
elseif type(T)=="number"then elseif type(T)=="number"then
C=C or color.white C=C or color.white
time=T time=T
elseif type(T)=="table"then
C,T=T or color.white
elseif not C then elseif not C then
C=color.white C=color.white
end end
if his then if his then
ins(debugMesHistory,SCN.cur..": "..tostring(text)) ins(debugMesHistory,SCN.cur..": "..tostring(text))
end end
ins(debugMesList,{text=text,r=C[1],g=C[2],b=C[3],blink=30,time=time or 150}) ins(debugMesList,{text=text,r=C[1],g=C[2],b=C[3],blink=30,time=time or 120})
end end
function LOG.copy() function LOG.copy()
local str=table.concat(debugMesHistory,"\n") local str=table.concat(debugMesHistory,"\n")

View File

@@ -2735,7 +2735,7 @@ function player.act.restart(P)
TASK.removeTask_code(TICK.autoPause) TASK.removeTask_code(TICK.autoPause)
resetPartGameData() resetPartGameData()
else else
LOG.print(text.holdR,"short") LOG.print(text.holdR,20,color.orange)
end end
end end
function player.act.insLeft(P,auto) function player.act.insLeft(P,auto)