DColumnSheet/AddSheet

From Garry's Mod
Jump to: navigation, search
 DColumnSheet:AddSheet( )

Contents

DescriptionPanelFunc

Adds a new column/tab.

Arguments

string name

Name of the column/tab

Arguments

Panel pnl

Panel to be used as contents of the tab. This normally would be a DPanel

Arguments

string icon=nil

Icon for the tab. This will ideally be a silkicon, but any material name can be used.

Returns

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
Personal tools
Navigation