Add short delay before showing nickname (again)
This commit is contained in:
@@ -787,9 +787,11 @@ function draw.norm(P,repMode)
|
||||
gc_scale(P.size)
|
||||
|
||||
-- Draw username
|
||||
setFont(30)
|
||||
gc_setColor(GROUP_COLORS[P.group])
|
||||
GC.mStr(P.username or USERS.getUsername(P.uid),300,-60)
|
||||
if P.showUsername then
|
||||
setFont(30)
|
||||
gc_setColor(GROUP_COLORS[P.group])
|
||||
GC.mStr(P.username or USERS.getUsername(P.uid),300,-60)
|
||||
end
|
||||
|
||||
-- Draw HUD
|
||||
if ENV.nextCount>0 then _drawNext(P,repMode) end
|
||||
|
||||
@@ -498,6 +498,7 @@ function PLY.newAIPlayer(id,AIdata,mini,p)
|
||||
group=0,
|
||||
} if p then TABLE.coverR(p,pData) end
|
||||
P.username="BOT"..pData.uid
|
||||
P.showUsername=true
|
||||
P.sid=NET.uid_sid[pData.uid] or pData.uid
|
||||
P.group=pData.group
|
||||
if not (P.group%1==0 and P.group>=1 and P.group<=6) then P.group=0 end
|
||||
@@ -522,7 +523,7 @@ function PLY.newPlayer(id,mini,p)
|
||||
else
|
||||
-- Default pid=1, and empty username
|
||||
pData.uid=1
|
||||
P.username=""
|
||||
P.username="SWEETSEA"
|
||||
end
|
||||
P.uid=pData.uid
|
||||
P.sid=NET.uid_sid[pData.uid] or pData.uid
|
||||
@@ -531,6 +532,8 @@ function PLY.newPlayer(id,mini,p)
|
||||
|
||||
_loadGameEnv(P)
|
||||
_applyGameEnv(P)
|
||||
|
||||
P.showUsername=not (P.gameEnv.allowMod and usingMod())
|
||||
end
|
||||
--------------------------</Public>--------------------------
|
||||
return PLY
|
||||
Reference in New Issue
Block a user