Garry's Mod Wiki

DImageButton:SetImage

  DImageButton:SetImage( string strImage, string strBackup )

Description

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

Arguments

1 string strImage
The path of the image to load. When no file extension is supplied the VMT file extension is used.
2 string strBackup
The path of the backup image.