mod显示当前挡位在总数占比
This commit is contained in:
@@ -110,7 +110,7 @@ function Pnt.mod()
|
|||||||
for _,M in next,MODOPT do
|
for _,M in next,MODOPT do
|
||||||
gc.push("transform")
|
gc.push("transform")
|
||||||
gc.translate(M.x,M.y)
|
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.scale(1+3*t)
|
||||||
gc.rotate(t)
|
gc.rotate(t)
|
||||||
local rad,side
|
local rad,side
|
||||||
@@ -133,6 +133,11 @@ function Pnt.mod()
|
|||||||
mStr(M.list[M.sel],20,8)
|
mStr(M.list[M.sel],20,8)
|
||||||
setFont(40)
|
setFont(40)
|
||||||
end
|
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()
|
gc.pop()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user