ControlPanel/MatSelect

From Garry's Mod
Jump to: navigation, search
 ControlPanel:MatSelect( )

Contents

DescriptionPanelFunc

Creates a MatSelect panel and adds it as an item.

Arguments

string convar

Calls MatSelect:SetConVar with this value.

Arguments

table options=nil

If specified, calls MatSelect:AddMaterial(key, value) for each table entry. If the table key is a number, the function will instead be called with the value as both arguments.

Arguments

boolean autostretch=nil

If specified, calls MatSelect:SetAutoHeight with this value.

Arguments

number width=nil

If specified, calls MatSelect:SetItemWidth with this value.

Arguments

number height=nil

If specified, calls MatSelect:SetItemHeight with this value.

Returns

MatSelect

The created MatSelect panel.
Personal tools
Navigation