The line of one ban in the ban list (fl_ban_row): the name and the SteamID of the banned player, the reason and who issued the ban, the time the ban has left and a button that lifts it after a confirmation. Assign the ban with set_ban. Derives from fl_base_panel.

Summary

Methods

get_ban()client
Returns the ban this row stands for.
Init()client
Creates the labels of the row and the button that lifts the ban.
Draws the row through the theme's PaintRow hook, unless the active theme draws it in its PaintAdminRow hook.
Puts the name above the reason on the left, and the time left and the unban button on the right.
Sets the ban this row stands for and fills in its texts.
Sets whether the row is drawn with a darker background, which the page does for every other row.
unban()client
Asks the player to confirm and then asks the server to lift the ban of this row.

Methods

Returns the ban this row stands for.

Returns

  • Map row of the ban list, or nil if it has not been set yet

Creates the labels of the row and the button that lifts the ban.

Draws the row through the theme's PaintRow hook, unless the active theme draws it in its PaintAdminRow hook.

Parameters

  • w Number panel width
  • h Number panel height

PANEL:PerformLayout(w, h)

client plugins/admin/plugin/views/cl_ban_list.lua:243

Puts the name above the reason on the left, and the time left and the unban button on the right.

Parameters

  • w Number panel width
  • h Number panel height

Sets the ban this row stands for and fills in its texts. The reason is the tooltip of the row as well, for when it does not fit.

Parameters

  • ban Map row of the ban list with the steam_id, name, reason, admin, permanent and time_left fields

Sets whether the row is drawn with a darker background, which the page does for every other row.

Parameters

  • dark Boolean

Asks the player to confirm and then asks the server to lift the ban of this row.

Defined in