The staff page (fl_staff_list): a scrollable list with a header for every role that
has members, the roles with the highest immunity first, and an fl_staff_row for every
member. The plugin calls set_members with what the server has sent.
Derives from fl_base_panel.
Summary
Methods
Init()client
Creates the scroll panel that holds the list, asks the server for the members and makes the panel known to the plugin.
PerformLayout(w, h)client
Lets the list fill the page.
set_members(members)client
Shows the staff members that the server has sent: recreates the list, grouped by role.
show_notice(text)client
Replaces the list with a single line of text, such as the notice that nobody is staff.
Methods
Creates the scroll panel that holds the list, asks the server for the members and makes the panel known to the plugin.
Lets the list fill the page.
Parameters
- w Number panel width
- h Number panel height
Shows the staff members that the server has sent: recreates the list, grouped by role. Within a role the members who are on the server come first.
Parameters
- members List<Map> members with the steam_id, name, role and online fields
Replaces the list with a single line of text, such as the notice that nobody is staff.
Parameters
- text String