开启mod后mod菜单按钮会闪烁

This commit is contained in:
MrZ_26
2023-08-14 18:48:43 +08:00
parent 974308c843
commit 2321176712
2 changed files with 12 additions and 1 deletions

View File

@@ -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

View File

@@ -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)