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
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
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.