From 9636b2a34ec7bcd66acf4c8ccd1a69c42736cdff Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sat, 19 Sep 2020 00:31:51 +0800 Subject: [PATCH] =?UTF-8?q?debug2=E6=A8=A1=E5=BC=8F=E4=B8=8B=E6=8C=89q?= =?UTF-8?q?=E5=8F=AF=E5=9C=A8=E6=B8=B8=E6=88=8F=E5=86=85=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E6=8E=A7=E4=BB=B6=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/widget.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Zframework/widget.lua b/Zframework/widget.lua index 2ccbc4fd..877a27af 100644 --- a/Zframework/widget.lua +++ b/Zframework/widget.lua @@ -70,7 +70,9 @@ function button:draw() end end function button:printInfo() - DBP(format("x=%d,y=%d,w=%d,h=%d,font=%d",self.x+self.w*.5,self.y+self.h*.5,self.w,self.h,self.font)) + local s=format("x=%d,y=%d,w=%d,h=%d,font=%d",self.x+self.w*.5,self.y+self.h*.5,self.w,self.h,self.font) + LOG.print(s) + DBP(s) end local key={