From 48def931bf0508eb45db06d19f2938fb09bbe8b1 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 17 Sep 2020 23:39:45 +0800 Subject: [PATCH] =?UTF-8?q?LOG.print=E8=BE=93=E5=87=BA=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E9=9A=8F=E5=B1=8F=E5=B9=95=E5=A4=A7=E5=B0=8F=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/log.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Zframework/log.lua b/Zframework/log.lua index 31df921d..ea3acca7 100644 --- a/Zframework/log.lua +++ b/Zframework/log.lua @@ -34,13 +34,15 @@ function LOG.update() end function LOG.draw() if debugMesList[1]then - setFont(20) + gc.push("transform") + setFont(int(20*scr.w/1280)) 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) end + gc.pop() end end function LOG.print(text,T,C)--text,type/time,color