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:

Page Links


Special Pages


Wikis

?

Render Time: 31ms

DB GetPage 2
Generate Html 3
SaveChanges (1) 13
Render Body 0
Render Sidebar 10