The door management menu (fl_door_management) of the owner of a door and of those who manage it: a text entry for the text on the door, a list of the characters that have or can be given access, and for the owner a button to sell the door. Every change is sent to the server at once, and the server answers with the new state of the door.

Summary

Methods

Closes the menu when the door is gone or the player has walked away from it.
Asks the player to confirm the sale of the door, then asks the server to sell it and closes the menu.
Returns the door that is being managed.
Returns what the server has last told about the door.
Returns the name of an access level.
Init()client
Sets up the frame with the summary, the text entry, the access list and the sell button.
Closes the menu when F3 is pressed.
Closes the menus that were opened from this one and forgets the menu.
Opens the menu with the access changes that the player may make for the character of a row: the owner may set any level, those who manage the door may only give and take the level that lets a character lock and unlock it.
rebuild()client
Fills the list with the characters that have access to the door, followed by the characters of the other players on the server, which can be given access.
Asks the server to put the text of the text entry on the door.
Asks the server to change the access of a character to the door.
Sets the door to manage and what the server has told about it.
Updates the menu with the state of the door that the server has sent.

Methods

Closes the menu when the door is gone or the player has walked away from it. Runs every frame from the Think of the text row, so that the Think of the frame itself, which moves and resizes it, stays as it is.

Asks the player to confirm the sale of the door, then asks the server to sell it and closes the menu.

Returns the door that is being managed.

Returns

  • Entity the door, or nil if it has not been set yet

Returns what the server has last told about the door.

Returns

PANEL:get_level_name(level)

client plugins/doors/plugin/views/cl_door_management.lua:201

Returns the name of an access level.

Parameters

  • level Number DOOR_ACCESS_NONE, DOOR_ACCESS_USE or DOOR_ACCESS_MANAGE

Returns

  • String

Sets up the frame with the summary, the text entry, the access list and the sell button. Only one management menu is open at a time.

PANEL:OnKeyCodePressed(key)

client plugins/doors/plugin/views/cl_door_management.lua:100

Closes the menu when F3 is pressed.

Parameters

  • key Number key code

Closes the menus that were opened from this one and forgets the menu.

PANEL:open_access_menu(line)

client plugins/doors/plugin/views/cl_door_management.lua:279

Opens the menu with the access changes that the player may make for the character of a row: the owner may set any level, those who manage the door may only give and take the level that lets a character lock and unlock it.

Parameters

  • line Panel the row of the character in the list

Fills the list with the characters that have access to the door, followed by the characters of the other players on the server, which can be given access.

Asks the server to put the text of the text entry on the door.

PANEL:set_access(character_id, level)

client plugins/doors/plugin/views/cl_door_management.lua:324

Asks the server to change the access of a character to the door.

Parameters

  • character_id Number ID of the character
  • level Number DOOR_ACCESS_NONE, DOOR_ACCESS_USE or DOOR_ACCESS_MANAGE

PANEL:set_door(entity, info)

client plugins/doors/plugin/views/cl_door_management.lua:134

Sets the door to manage and what the server has told about it.

Parameters

Updates the menu with the state of the door that the server has sent. The menu closes if the player does not manage the door anymore.

Parameters

Defined in