From bd52f1bb3c3d271d5536b199a10885dc983c72c9 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Wed, 18 Aug 2021 15:21:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=A1=8C=E5=8F=B7=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=EF=BC=8C=E6=9B=B4=E5=8A=A0=E6=B8=85=E6=99=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/player/draw.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/parts/player/draw.lua b/parts/player/draw.lua index 36b12520..8b938a77 100644 --- a/parts/player/draw.lua +++ b/parts/player/draw.lua @@ -745,11 +745,18 @@ function draw.norm(P,repMode) --Draw line number if ENV.fieldH>20 and ENV.lineNum then - gc_setColor(1,1,1,ENV.lineNum) + local a=ENV.lineNum setFont(20) local dy=camDY<900 and 0 or camDY-camDY%300-600 for i=1,3 do - gc.print(10+10*i+dy/30,2,-325-300*i-dy) + local num=10+10*i+dy/30 + local y=-325-300*i-dy + gc_setColor(0,0,0,a) + gc.print(num,1,y) + gc.print(num,2,y+1) + gc_setColor(.97,.97,.97,a) + gc.print(num,2,y) + gc.print(num,2,y) end end