Garry's Mod Wiki

Garry's Mod Wiki

  table DPanel:GetBackgroundColor()

Description

Returns the panel's background color.

By default this returns nil even though the default background color is white

Returns

1 table
Color of the panel's background.

Example

Prints out the default panel background color.

BGPanel = vgui.Create("DPanel") BGPanel:SetPos(20, 20) BGPanel:SetSize(200, 200) print(BGPanel:GetBackgroundColor())
Output: nil

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...