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

Returns the door that is being edited.
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.
Closes the menu when F3 is pressed.
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

PANEL:get_door_data()

client plugins/doors/plugin/views/cl_door_menu.lua:81

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.

PANEL:OnKeyCodePressed(key)

client plugins/doors/plugin/views/cl_door_menu.lua:29

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.

PANEL:set_door(entity, conditions)

client plugins/doors/plugin/views/cl_door_menu.lua:50

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 nil condition nodes that are currently set on the door

Defined in