Garry's Mod Wiki

DImageButton:SetImage

  DImageButton:SetImage( string strImage, string strBackup = nil )

Description

Sets the "image" of the DImageButton. Equivalent of DImage:SetImage.

Arguments

1 string strImage
The path of the image to load, relative to the materials/ folder. When no file extension is supplied the .vmt file extension is assumed.
2 string strBackup = nil
The path of the backup image.