v0.11.1:小Z更新
This commit is contained in:
@@ -7,7 +7,6 @@ local debugMesHistory={
|
||||
"Version: "..gameVersion,
|
||||
os.date("Launched at %Y/%m/%d %H:%M"),
|
||||
}
|
||||
local debugMesFloat=0
|
||||
local LOG={}
|
||||
function LOG.update()
|
||||
if debugMesList[1]then
|
||||
@@ -19,17 +18,9 @@ function LOG.update()
|
||||
M.time=M.time-1
|
||||
if M.time==0 then
|
||||
rem(debugMesList,i)
|
||||
if not debugMesList[1]then
|
||||
debugMesFloat=0
|
||||
elseif i==1 then
|
||||
debugMesFloat=debugMesFloat
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
if debugMesFloat>0 then
|
||||
debugMesFloat=int(debugMesFloat*.9)
|
||||
end
|
||||
end
|
||||
end
|
||||
function LOG.draw()
|
||||
@@ -41,7 +32,7 @@ function LOG.draw()
|
||||
local M=debugMesList[i]
|
||||
local t=M.time
|
||||
gc.setColor(M.r,M.g,M.b,M.blink>0 and int(M.blink/3)%2 or min(t/26,1))
|
||||
gc.print(M.text,10+(20-min(t,20))^1.5/4,25*i*k+debugMesFloat)
|
||||
gc.print(M.text,10+(20-min(t,20))^1.5/4,25*i*k)
|
||||
end
|
||||
gc.pop()
|
||||
end
|
||||
@@ -58,13 +49,13 @@ function LOG.print(text,T,C)--text,type/time,color
|
||||
his=true
|
||||
time=210
|
||||
elseif T=="message"then
|
||||
C=C or color.green
|
||||
C=C or color.sky
|
||||
his=true
|
||||
elseif type(T)=="number"then
|
||||
C=C or color.white
|
||||
time=T
|
||||
elseif type(T)=="table"then
|
||||
C,T=T or color.white
|
||||
C,T=T
|
||||
elseif not C then
|
||||
C=color.white
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user