From a5a7cc6a9b5d92b715d40065ee1ce57f588d3cf3 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 27 May 2021 10:20:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E5=B9=95=E5=8F=AF=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E6=97=B6=E5=B1=8F=E5=B9=95=E8=BE=B9=E7=BC=98=E4=BC=9A=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=B8=A4=E4=B8=AA=E7=AE=AD=E5=A4=B4=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/widget.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Zframework/widget.lua b/Zframework/widget.lua index a7d66b62..a0a2b5b9 100644 --- a/Zframework/widget.lua +++ b/Zframework/widget.lua @@ -14,6 +14,8 @@ local sub,ins=string.sub,table.insert local getFont,setFont,mStr=getFont,setFont,mStr local mDraw,mDraw_X,mDraw_Y=ADRAW.draw,ADRAW.simpX,ADRAW.simpY +local downArrowIcon=DOGC{60,30,{'fPoly',0,0,30,30,60,0}} +local upArrowIcon=DOGC{60,30,{'fPoly',0,30,30,0,60,30}} local clearIcon=DOGC{40,40, {'fRect',16,4,8,2}, {'fRect',8,0,24,2}, @@ -1248,6 +1250,15 @@ function WIDGET.draw() end end gc_translate(0,WIDGET.scrollPos) + if WIDGET.scrollHeight>0 then + gc_setColor(1,1,1) + if WIDGET.scrollPos>0 then + mDraw(upArrowIcon,640,20) + end + if WIDGET.scrollPos