From c9c509205537ba52edec1b8453bfceaecec685aa Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Fri, 23 Apr 2021 09:17:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9C=AA=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E5=B0=BA=E5=AF=B8=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E5=92=8C=E6=9C=AA=E7=99=BB=E5=BD=95=E4=BC=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- parts/users.lua | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/parts/users.lua b/parts/users.lua index b6d14155..dbd69f3e 100644 --- a/parts/users.lua +++ b/parts/users.lua @@ -12,17 +12,24 @@ local function loadAvatar(path) return canvas end -local texture_noImage=DOGC{120,120, - {"setCL",0,0,0}, - {"fRect",0,0,120,120}, +local emptyUser={ + username="_", + motto="", + hash=false, + new=true, +} +local texture_noImage=DOGC{128,128, + {"setCL",.1,.1,.1}, + {"fRect",0,0,128,128}, {"setCL",1,1,1}, {"setLW",6}, - {"dLine",9,9,110,110}, - {"dLine",9,110,110,9}, + {"dLine",9,9,118,118}, + {"dLine",9,118,118,9}, } local db_img={} local db=setmetatable({},{__index=function(self,k) + if not k then return emptyUser end local file="cache/user"..k..".dat" local d= fs.getInfo(file)and JSON.decode(fs.read(file))or