Defines the cwSystem menu tab, which lists the systems registered with cw.system and shows the page of the one that is opened.

A system's Open button is enabled when its HasAccess allows it, and its page is filled by its OnDisplay method. The tab stores itself as cw.system.panel.

Summary

Methods

Init()client
Sizes the system menu tab to the menu, registers itself as cw.system.panel and builds it.
Returns whether the system tab should be shown in the menu.
Rebuilds the tab when it is selected in the menu.
Draws nothing.
Does nothing; the list lays itself out.
Rebuild()client
Rebuilds the tab: the list of systems, or the open system's page with a button back to the list.

Methods

Sizes the system menu tab to the menu, registers itself as cw.system.panel and builds it.

Returns whether the system tab should be shown in the menu.

Returns

  • Boolean true when the player has access to at least one system, otherwise nil

Rebuilds the tab when it is selected in the menu.

Draws nothing.

Parameters

  • w
  • h

Does nothing; the list lays itself out.

Parameters

  • w
  • h

Rebuilds the tab: the list of systems, or the open system's page with a button back to the list.

Each system in the list gets an Open button, enabled when its HasAccess method allows it. An open system's page gets its own form when the system sets doesCreateForm, and is filled by the system's OnDisplay method, called with this panel and that form.

Defined in