Defines the cwDoor door management window and handles the door Cable messages sent by the server.

The window has a Players tab for granting basic or complete access and a Settings tab with the door text, parent sharing options and a Sell or Unown button; every change is sent with the DoorManagement Cable message. The PurchaseDoor, DoorManagement, DoorAccess, SetSharedAccess and SetSharedText hooks open the purchase query or the window and keep cw.door up to date.

Summary

Methods

Init()client
Builds the door management window: a Players tab and a Settings tab with the door text entry and, for the owner, parent sharing options and a Sell or Unown button.
Lays out the frame and stretches the tabs to fill it.
Rebuild()client
Rebuilds the Players tab, grouping players into complete, basic and no access lists.
Think()client
Keeps the window centred and closes it when the door is gone or more than 192 units away.

Methods

Builds the door management window: a Players tab and a Settings tab with the door text entry and, for the owner, parent sharing options and a Sell or Unown button.

Changes are sent to the server with the DoorManagement Cable message. Door text containing "this door can be purchased" is not sent.

Lays out the frame and stretches the tabs to fill it.

Parameters

  • w
  • h

Rebuilds the Players tab, grouping players into complete, basic and no access lists.

Each player opens a menu to give or take access when clicked. Players are listed when the PlayerShouldShowOnDoorAccessList hook allows it, under the name from GetPlayerDoorAccessName.

Keeps the window centred and closes it when the door is gone or more than 192 units away.

Defined in