From eee820bc73b6da138040a78768d3e14f08be9367 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 18 Jun 2021 01:45:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83=E8=BE=93=E5=85=A5=E6=A1=86?= =?UTF-8?q?=E8=BE=B9=E6=A1=86=E6=A0=B7=E5=BC=8F=EF=BC=8C=E6=8E=A7=E4=BB=B6?= =?UTF-8?q?=E8=A2=AB=E9=9A=90=E8=97=8F=E6=97=B6=E4=BC=9A=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=A4=B1=E5=8E=BB=E7=84=A6=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/widget.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Zframework/widget.lua b/Zframework/widget.lua index 8c11a7ba..64adb9c2 100644 --- a/Zframework/widget.lua +++ b/Zframework/widget.lua @@ -799,11 +799,11 @@ function inputBox:draw() local x,y,w,h=self.x,self.y,self.w,self.h local ATV=self.ATV - gc_setColor(1,1,1,ATV*.1) + gc_setColor(1,1,1,ATV*.08) gc_rectangle('fill',x,y,w,h) gc_setColor(1,1,1) - gc_setLineWidth(4) + gc_setLineWidth(3) gc_rectangle('line',x,y,w,h) --Drawable @@ -1247,8 +1247,13 @@ end function WIDGET.update() for _,W in next,WIDGET.active do - if W.hideF then W.hide=W.hideF()end if W.update then W:update()end + if W.hideF then + W.hide=W.hideF() + if W.hide and W==WIDGET.sel then + WIDGET.unFocus(true) + end + end end end local widgetCanvas