Garry's Mod Wiki

MatSelect

Description

The panel used by Material & Lamp Sandbox tools for texture selection.

View source

Parent

Derives methods, etc not listed on this page from ContextBase.

Events

Defines a paint over function for a DImageButton when it is selected. self in the context of this function is the DImageButton!

Methods

MatSelect:Clear()
Clears all added materials and clears selection.
Find a DImageButton panel based on the input material path.
MatSelect:SelectMaterial( DImageButton mat )
Selects a given material panel.