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
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
- Map the state of the door, see
Doors:get_menu_info
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.
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.
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.
Parameters
- character_id Number ID of the character
- level Number DOOR_ACCESS_NONE, DOOR_ACCESS_USE or DOOR_ACCESS_MANAGE
Sets the door to manage and what the server has told about it.
Parameters
- entity Entity the door
- info Map the state of the door, see
Doors:get_menu_info
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
- info Map the state of the door, see
Doors:get_menu_info