From 284d02d172a89b7d5bf612bc5b1948355a065f78 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Tue, 8 Dec 2020 19:14:19 +0800 Subject: [PATCH] =?UTF-8?q?key=E7=BC=BA=E5=B0=91=E6=96=87=E6=9C=AC?= =?UTF-8?q?=E6=97=B6=E4=B9=9F=E4=BC=9A=E5=83=8F=E6=8C=89=E9=92=AE=E4=B8=80?= =?UTF-8?q?=E6=A0=B7=E6=98=BE=E7=A4=BA=E5=86=85=E9=83=A8=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/widget.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Zframework/widget.lua b/Zframework/widget.lua index fd8eed5f..7dcd05e9 100644 --- a/Zframework/widget.lua +++ b/Zframework/widget.lua @@ -236,6 +236,9 @@ function key:draw() setFont(self.font) gc.setColor(r,g,b,1.2) gc.printf(t,x,y+h*.5-self.font*.7,w,"center") + else + self.text=self.name or"NONAME" + self.color=COLOR.dPurple end end function key:getInfo()