Garry's Mod Wiki

Garry's Mod Wiki

  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:

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...