cwSystem panelclient
Panel defined in core/derma/cl_system.lua
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
cw.system.panel and builds it.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
truewhen the player has access to at least one system, otherwisenil
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.