Community Curator/Source/TSWRes CommunityDraw

Draw.Community = {} DrCo = Draw.Community

function DrCo.PlayerIcon(X, Y, Size, Icon) draw.fillrect(X-(Size*.8), Y-Size, X+(Size*.8), Y+Size, draw.white) draw.fillrect(X-(Size*.6), Y-(Size*.8), X+(Size*.6), Y+(Size*.4), draw.black) if Icon then local Run = PlayIcons[tostring(Icon)] Run(X, Y-(Size*.2), Size*.7) end end

function Draw.PrintPlayIcons(t,X1,Y1,X2,Y2) t2=t2 or t  local X2, Y2 = X2 or SizeX, Y2 or SizeY local FunX,FunY = X1, Y1  local DwSize, IcoSize = 1, 64 local OptSz = 64 local DISz = (IcoSize*DwSize) local Odd = false local Col = nil for k,v in pairs(t) do     Odd = not Odd if Odd then Col = PlayCol1 else Col = PlayCol2 end --print(t) --print(k, v, Func) draw.fillrect(FunX, FunY, FunX+64, FunY+64, Col) DrCo.PlayerIcon(FunX + 32, FunY + 32, 32, k)     FunX = FunX + OptSz if FunX + OptSz > X2 then FunX, FunY = X1, FunY + OptSz end end end