From 7e726bc18af27e4774c87868ad59cee20baad4d8 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 19 Sep 2020 11:20:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=B1=8F=E5=B9=95Log.print=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E9=97=B4=E9=9A=94=E4=B9=9F=E7=BC=A9=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/log.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Zframework/log.lua b/Zframework/log.lua index ea3acca7..aedfe1b5 100644 --- a/Zframework/log.lua +++ b/Zframework/log.lua @@ -22,7 +22,7 @@ function LOG.update() if not debugMesList[1]then debugMesFloat=0 elseif i==1 then - debugMesFloat=debugMesFloat+25 + debugMesFloat=debugMesFloat end end end @@ -35,12 +35,13 @@ end function LOG.draw() if debugMesList[1]then gc.push("transform") - setFont(int(20*scr.w/1280)) + local k=scr.w/1280 + setFont(int(20*k)) for i=1,#debugMesList do 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+debugMesFloat) + gc.print(M.text,10+(20-min(t,20))^1.5/4,25*i*k+debugMesFloat) end gc.pop() end