Garry's Mod Wiki

DImageButton:SetColor

  DImageButton:SetColor( table color )

Description

Sets the color of the image. Equivalent of DImage:SetImageColor

Arguments

1 table color
The Color to set

Example

Changes the image to blue:

-- E.g. for the Engineer (blue) local engineerClass = vgui.Create("DImageButton", container) engineerClass:SetColor(Color(22, 166, 236, 255)) -- ...
Output: