From ae260f49081a15ccd08459fd799cc307c0190158 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Mon, 10 May 2021 21:10:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E7=9A=84=E7=BD=91?= =?UTF-8?q?=E6=A0=BC=E7=BB=98=E5=88=B6=E6=9C=89=E5=9D=90=E6=A0=87=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/draw.lua | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/parts/player/draw.lua b/parts/player/draw.lua index 85ed7c4e..f3720e6a 100644 --- a/parts/player/draw.lua +++ b/parts/player/draw.lua @@ -43,7 +43,7 @@ local multiple=DOGC{15,15, local gridLines do local L={300,640,{'setLW',2}} for x=1,9 do table.insert(L,{'line',30*x,0,30*x,640})end - for y=0,19 do table.insert(L,{'line',0,40+30*y,300,40+30*y})end + for y=0,20 do table.insert(L,{'line',0,10+30*y,300,10+30*y})end gridLines=DOGC(L) end local LDmarks=gc.newSpriteBatch(DOGC{14,5,{'clear',1,1,1}},15,'static') @@ -72,10 +72,6 @@ local function applyFieldOffset(P,notNorm) end local function stencilBoard()gc_rectangle('fill',0,-10,300,610)end -local function drawGrid(P,alpha) - gc_setColor(1,1,1,alpha) - gc_draw(gridLines,0,-10+(P.fieldBeneath+P.fieldUp)%30) -end local function drawRow(h,V,L,showInvis) local texture=SKIN.curText local t=TIME()*4 @@ -240,7 +236,7 @@ local function drawBoarders(P) gc_setLineWidth(2) gc_setColor(P.frameColor) gc_rectangle('line',-1,-11,302,612)--Bis Boarder - gc_rectangle('line',301,-3,15,604)--AtkBuffer boarder + gc_rectangle('line',301,-3,15,604) gc_rectangle('line',-16,-3,15,604)--B2b bar boarder end local function drawBuffer(P) @@ -532,7 +528,10 @@ function draw.norm(P) boardTransform(ENV.flipBoard) --Draw grid - if ENV.grid then drawGrid(P,ENV.grid)end + if ENV.grid then + gc_setColor(1,1,1,ENV.grid) + gc_draw(gridLines,0,(FBN+FUP+10)%30-50) + end --Move camera gc_translate(0,600+FBN+FUP) @@ -695,7 +694,10 @@ function draw.norm_remote(P) boardTransform(ENV.flipBoard) --Draw grid - if ENV.grid then drawGrid(P,ENV.grid)end + if ENV.grid then + gc_setColor(1,1,1,ENV.grid) + gc_draw(gridLines,0,(FBN+FUP+10)%30-50) + end --Move camera gc_translate(0,600+FBN+FUP)