实现自动请求没见过的用户信息和自动获取用户头像

This commit is contained in:
MrZ_26
2022-10-17 11:47:44 +08:00
parent 7ac6f45b9b
commit ccb05230f2
3 changed files with 69 additions and 26 deletions

View File

@@ -834,7 +834,6 @@ do-- function drawSelfProfile()
local name
local textObj,scaleK,width,offY
function drawSelfProfile()
local selfAvatar=USERS.getAvatar(USER.uid)
gc_push('transform')
gc_replaceTransform(SCR.xOy_ur)
@@ -843,7 +842,7 @@ do-- function drawSelfProfile()
gc_setColor(COLOR.X)gc_rectangle('fill',0,0,-300,80)
gc_setColor(1,1,1)gc_rectangle('line',-300,0,300,80,5)
gc_rectangle('line',-73,7,66,66,2)
gc_draw(selfAvatar,-72,8,nil,.5)
gc_draw(USERS.getAvatar(USER.uid),-72,8,nil,.5)
-- Draw username
if name~=USERS.getUsername(USER.uid) then