So I've been working on some server stuff, and did the obvious showing of ranks on the scoreboard.
[lua]hook.Add("TTTScoreboardColumns", "lunarfall.scoreboardcolumn", function(panel)
local ranks = panel:AddColumn("Rank", function(ply, label)
local rank = moderator.GetGroup(ply)
local rankinfo = moderator.GetGroupTable(rank)
label:SetColor(rankinfo.colour or Color(255, 255, 255))
return rankinfo.name
end, 75)
end)[/lua]
I needed to adjust the width so it didn't hang off the column edges, only issue is that it also messed with the karma column.
[t]http://uploads.jcwcreations.com/10788643a71360b31600b96231bdab5d.png[/t]
Not sure how to best proceed from here, nothing in the core files gave any indication either.
For some reason the karma is moved over to the right, and the width of its tab is increased as well.
Sorry, you need to Log In to post a reply to this thread.