Small tweak

This commit is contained in:
SweetSea-ButImNotSweet
2024-01-07 19:29:45 +07:00
parent 2816a76f5a
commit d61372c041
2 changed files with 7 additions and 2 deletions

View File

@@ -787,7 +787,7 @@ function draw.norm(P,repMode)
gc_scale(P.size)
-- Draw username
if GAME.modUsed and P.frameRun>480 or true then
if GAME.modUsed and P.frameRun>GAME.modUsed*2.6 or not GAME.modUsed then
setFont(30)
gc_setColor(GROUP_COLORS[P.group])
GC.mStr(P.username or USERS.getUsername(P.uid),300,-60)

View File

@@ -24,7 +24,12 @@ function scene.enter()
BG.set('tunnel')
end
function scene.back()
GAME.modUsed=usingMod()
local totalModUsed=0
for i=1,#GAME.mod do
if GAME.mod[i]>0 then totalModUsed=totalModUsed+1
end
end
GAME.modUsed=totalModUsed>0 and totalModUsed or false
end
function scene.mouseMove(x,y)