The door settings menu (fl_door_menu): a frame with a row for every door property that
defines create_panel, and a conditions editor for the door. The changes are sent to the
server when the menu is closed.
Summary
Methods
get_door()client
Returns the door that is being edited.
get_door_data()client
Returns the properties that were changed in the menu.
Init()client
Sets up the frame with the list of door properties and the conditions editor.
OnKeyCodePressed(key)client
Closes the menu when F3 is pressed.
OnRemove()client
Sends the changed properties and the conditions of the door to the server.
Sets the door to edit, creates the rows for its properties and fills the conditions editor.
Methods
Returns the door that is being edited.
Returns
- Entity the door, or nil if it has not been set yet
Returns the properties that were changed in the menu.
Returns
- Map changed values keyed by property id
Sets up the frame with the list of door properties and the conditions editor.
Closes the menu when F3 is pressed.
Parameters
- key Number key code
Sends the changed properties and the conditions of the door to the server.
Sets the door to edit, creates the rows for its properties and fills the conditions editor.
Parameters
- entity Entity the door
- conditions List optional, defaults to
nilcondition nodes that are currently set on the door