From 7bdc20f15c1ef0de28e29eccd6945479903a9abd Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 4 Dec 2020 16:03:57 +0800 Subject: [PATCH] =?UTF-8?q?mod=E6=98=BE=E7=A4=BA=E5=BD=93=E5=89=8D?= =?UTF-8?q?=E6=8C=A1=E4=BD=8D=E5=9C=A8=E6=80=BB=E6=95=B0=E5=8D=A0=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/mod.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/parts/scenes/mod.lua b/parts/scenes/mod.lua index 3d473dbd..f596bf7f 100644 --- a/parts/scenes/mod.lua +++ b/parts/scenes/mod.lua @@ -110,7 +110,7 @@ function Pnt.mod() for _,M in next,MODOPT do gc.push("transform") gc.translate(M.x,M.y) - local t=M.time*.01 + local t=M.time*.01--t range:0~0.1 gc.scale(1+3*t) gc.rotate(t) local rad,side @@ -133,6 +133,11 @@ function Pnt.mod() mStr(M.list[M.sel],20,8) setFont(40) end + + if M.list then + gc.setColor(1,1,1,t*6) + gc.arc("line","open",0,0,rad+6,0,(M.sel/#M.list)*t*62.832) + end gc.pop() end