From 9ad0b184737fb3385cb60e91fbe70b24677ce48a Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 8 Nov 2020 19:18:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=8E=A7=E4=BB=B6=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=E6=96=87=E6=9C=AC=E6=97=B6=E4=B8=8D=E4=BC=9A=E6=8A=A5?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/widget.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Zframework/widget.lua b/Zframework/widget.lua index e362fda5..e16f52df 100644 --- a/Zframework/widget.lua +++ b/Zframework/widget.lua @@ -23,6 +23,10 @@ local text={ function text:reset() if type(self.text)=="string"then self.text=gc.newText(getFont(self.font),self.text) + elseif type(self.text)~="userdata"or self.text.type(self.text)~="Text"then + self.text=gc.newText(getFont(self.font),self.name) + self.color=COLOR.dPurple + self.font=self.font-10 end end function text:draw()