From 3cddabafb799f709b06b2b1d6d824edd5fc5ceb3 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 14 Feb 2021 23:44:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D3D=E6=96=B9=E5=9D=97=E5=92=8C?= =?UTF-8?q?showinvis=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/draw.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/parts/player/draw.lua b/parts/player/draw.lua index 1c2c14bf..be9b1fa6 100644 --- a/parts/player/draw.lua +++ b/parts/player/draw.lua @@ -44,7 +44,7 @@ local function boardTransform(mode) end end end -local function drawRow(h,V,L) +local function drawRow(h,V,L,flag) local texture=SKIN.curText local t=TIME()*4 local rep=GAME.replaying @@ -54,7 +54,7 @@ local function drawRow(h,V,L) local a=V[i]*.05 gc_setColor(1,1,1,a) gc_draw(texture[L[i]],30*i-30,-30*h)-- drawCell(j,i,L[i]) - elseif rep then + elseif rep and not flag then gc_setColor(1,1,1,.3+.08*sin(.5*(h-i)+t)) gc_rectangle("fill",30*i-30,-30*h,30,30) end @@ -98,7 +98,7 @@ local function drawField(P) gc.translate(0,-4) end ::edgeFinished:: - for j=start,min(start+21,#F)do drawRow(j,V[j],F[j])end + for j=start,min(start+21,#F)do drawRow(j,V[j],F[j],flag)end if flag then gc.setShader() gc.translate(0,4) @@ -107,7 +107,7 @@ local function drawField(P) end else--With falling animation local stepY=ENV.smooth and(P.falling/(ENV.fall+1))^2.5*30 or 30 - local A=P.falling/ENV.fall + local alpha=P.falling/ENV.fall local h=1 gc_push("transform") if flag then @@ -120,10 +120,10 @@ local function drawField(P) while j==P.clearingRow[h]do h=h+1 gc_translate(0,-stepY) - gc_setColor(1,1,1,A) + gc_setColor(1,1,1,alpha) gc_rectangle("fill",0,30-30*j,300,stepY) end - drawRow(j,V[j],F[j]) + drawRow(j,V[j],F[j],flag) end if flag then gc_pop()