From 2321176712d0de917f7813bf5cff48933f55c8b8 Mon Sep 17 00:00:00 2001 From: MrZ_26 <1046101471@qq.com> Date: Mon, 14 Aug 2023 18:48:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=90=AFmod=E5=90=8Emod=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=8C=89=E9=92=AE=E4=BC=9A=E9=97=AA=E7=83=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/scenes/customGame.lua | 7 ++++++- parts/scenes/mode.lua | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/parts/scenes/customGame.lua b/parts/scenes/customGame.lua index e9b0ce8a..b9fbdd86 100644 --- a/parts/scenes/customGame.lua +++ b/parts/scenes/customGame.lua @@ -167,10 +167,15 @@ function scene.draw() gc.setColor(1,1,floor(TIME()*6.26)%2) gc.print("#"..#BAG,615,220) end - gc.setColor(COLOR.Z) gc.print(CUSTOMENV.sequence,610,250) + -- Mod indicator + if #GAME.mod>0 then + gc.setColor(.42,.26,.62,.62+.26*math.sin(TIME()*12.6)) + gc.rectangle('fill',1110-230/2,200-90/2,230,90,5,5) + end + gc.translate(0,WIDGET.scrollPos) end diff --git a/parts/scenes/mode.lua b/parts/scenes/mode.lua index 850cc31b..7cbb952b 100644 --- a/parts/scenes/mode.lua +++ b/parts/scenes/mode.lua @@ -220,6 +220,12 @@ local function _drawModeShape(M,S,drawType) end end function scene.draw() + -- Mod indicator + if #GAME.mod>0 then + gc_setColor(.42,.26,.62,.62+.26*math.sin(TIME()*12.6)) + gc_rectangle('fill',140-220/2,655-80/2,220,80,5,5) + end + local _ gc_push('transform') gc_translate(640,360)