新增行号显示(设置可调透明度) close #196

This commit is contained in:
MrZ626
2021-08-14 13:25:34 +08:00
parent 6559a405e1
commit fbc1c6b60a
12 changed files with 29 additions and 11 deletions

View File

@@ -686,6 +686,15 @@ function draw.norm(P)
--Draw field
drawField(P,replaying)
if ENV.fieldH>20 and ENV.lineNum then
gc_setColor(1,1,1,ENV.lineNum)
setFont(20)
local dy=camDY<900 and 0 or camDY-camDY%300-900
for i=1,3 do
gc.print(10+10*i+dy/30,2,-325-300*i-dy)
end
end
--Draw spawn line
gc_setLineWidth(4)
gc_setColor(1,sin(t)*.4+.5,0,.5)

View File

@@ -7,7 +7,7 @@ return{
ghostType='gray',
block=true,ghost=.3,center=1,
smooth=false,grid=.16,
smooth=false,grid=.16,lineNum=.5,
upEdge=true,
bagLine=true,
text=true,

View File

@@ -348,6 +348,7 @@ local function applyGameEnv(P)--Finish gameEnv processing
if ENV.ghost==0 then ENV.ghost=false end
if ENV.grid==0 then ENV.grid=false end
if ENV.center==0 then ENV.center=false end
if ENV.lineNum==0 then ENV.lineNum=false end
end
--------------------------</Libs>--------------------------