Garry's Mod Wiki

DColumnSheet:AddSheet

  table DColumnSheet:AddSheet( string name, Panel pnl, string icon = nil )

Description

Adds a new column/tab.

Arguments

1 string name
Name of the column/tab
2 Panel pnl
Panel to be used as contents of the tab. This normally would be a DPanel
3 string icon = nil
Icon for the tab. This will ideally be a silkicon, but any material name can be used.

Returns

1 table
A table containing the following keys:
  • Panel Button - The created tab button that will switch to the given panel
  • Panel Panel - The given panel to switch to when the button is pressed