From 1807c95c5381f3d85d6a03c72b5b11468ef76073 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Sun, 29 Aug 2021 22:48:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3tas=E5=A4=A7=E5=AD=97?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E4=B8=8D=E6=AD=A3=E7=A1=AE=EF=BC=88=E4=B9=8B?= =?UTF-8?q?=E5=89=8D=E9=BB=98=E8=AE=A4=E4=BA=86=E4=B8=80=E4=B8=AA=E5=AD=97?= =?UTF-8?q?=E4=BD=93=E7=9A=84=E5=B0=BA=E5=AF=B8=E6=89=80=E4=BB=A5=E6=8D=A2?= =?UTF-8?q?=E5=AE=8C=E5=AD=97=E4=BD=93=E7=88=86=E4=BA=86=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/game.lua | 5 +---- parts/scenes/pause.lua | 8 ++------ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/parts/scenes/game.lua b/parts/scenes/game.lua index a99c73f8..9bb52145 100644 --- a/parts/scenes/game.lua +++ b/parts/scenes/game.lua @@ -329,12 +329,9 @@ local function _drawAtkPointer(x,y) end function scene.draw() if tasMode then - gc.push('transform') - gc.scale(4) setFont(100) gc.setColor(.4,.4,.4,.5) - gc.draw(tasText,72,20) - gc.pop() + mDraw(tasText,640,360,nil,5) end local repMode=GAME.replaying or tasMode diff --git a/parts/scenes/pause.lua b/parts/scenes/pause.lua index 27292fa0..c38dab47 100644 --- a/parts/scenes/pause.lua +++ b/parts/scenes/pause.lua @@ -185,6 +185,7 @@ local hexList={1,0,.5,1.732*.5,-.5,1.732*.5} for i=1,6 do hexList[i]=hexList[i]*150 end local textPos={90,131,-90,131,-200,-25,-90,-181,90,-181,200,-25} local dataPos={90,143,-90,143,-200,-13,-90,-169,90,-169,200,-13} +local tasText=gc.newText(getFont(100),"TAS") function scene.draw() local T=timer1*.02 local T2=timer2*.04 @@ -221,13 +222,8 @@ function scene.draw() end if GAME.tasUsed then - gc.push('transform') - gc.translate(560,205) - gc.scale(2.6) - setFont(100) gc.setColor(.97,.97,.97,T*.08) - gc.print("TAS",50,-23,.3) - gc.pop() + mDraw(tasText,870,395,.3,2.6) end --Big info frame