mod显示当前挡位在总数占比

This commit is contained in:
MrZ626
2020-12-04 16:03:57 +08:00
parent a83bc31258
commit 7bdc20f15c

View File

@@ -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