From 23d6444a54463256301b61383c1980076510bee5 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 8 Apr 2021 17:44:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A7=E4=BB=B6=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=92=8Chide=E5=B1=9E=E6=80=A7=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E7=9A=84=E4=B8=80=E4=B8=AA=E8=87=B4=E5=91=BDbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/widget.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Zframework/widget.lua b/Zframework/widget.lua index f5d601f9..26c9df19 100644 --- a/Zframework/widget.lua +++ b/Zframework/widget.lua @@ -420,7 +420,7 @@ function slider:update() self.ATV=atv end end - if not(self.hide and self.hide())then + if not(self.hide==true or self.hide and self.hide())then self.pos=self.pos*.7+self.disp()*.3 end end @@ -845,7 +845,7 @@ function textBox:update() end function textBox:push(t) ins(self.texts,t) - if self.scrollPos==#self.texts-1 and not(self.hide and self.hide())then + if self.scrollPos==#self.texts-1 and not(self.hide==true or self.hide and self.hide())then self.scrollPos=#self.texts else SFX.play("spin_0",.8)