cwScoreboardItem panelclient
Panel defined in core/derma/cl_scoreboard.lua
Summary
Methods
Init()client
Builds a player row (
cwScoreboardItem) from the parent's playerData: name, faction or custom text, model (or an unknown icon when the player is not recognised) and Steam avatar.Paint(width, height)client
Draws the player row's grey background.
PerformLayout(w, h)client
Places the player row's icon, avatar and labels.
Think()client
Shows the player's ping, or the custom tooltip, on the row's icon.
Methods
Builds a player row (cwScoreboardItem) from the parent's playerData: name, faction or custom text,
model (or an unknown icon when the player is not recognised) and Steam avatar.
The text comes from the GetPlayerScoreboardText hook and the whole info table can be changed with
ScoreboardAdjustPlayerInfo. Clicking the model opens a menu with the options from
GetPlayerScoreboardOptions; clicking the avatar opens the Steam profile. The global
SCOREBOARD_PANEL is true while the row is being built.
Draws the player row's grey background.
Parameters
- width
- height
Places the player row's icon, avatar and labels.
Parameters
- w
- h
Shows the player's ping, or the custom tooltip, on the row's icon.