Defines cwColumnSheet, a DColumnSheet whose AddSheet creates themed navigation buttons and whose SetActiveButton switches the visible panel.

Summary

Methods

Adds a sheet with a themed navigation button that shows the panel when clicked.
Makes a navigation button the active one, showing its panel and hiding the previous one.

Methods

PANEL:AddSheet(label, panel, material)

client gamemodes/catwork/gamemode/core/derma/cl_columnsheet.lua:14

Adds a sheet with a themed navigation button that shows the panel when clicked.

Uses a plain image button when ButtonOnly is set. The first sheet added becomes the active one. Unlike DColumnSheet:AddSheet, nothing is returned, and nothing is added when panel is not valid.

Parameters

  • label String Text of the navigation button
  • panel Panel Panel shown when the sheet is active
  • material String Icon of the navigation button

Makes a navigation button the active one, showing its panel and hiding the previous one.

Parameters

  • active Panel The navigation button to activate

Defined in