Garry's Mod Wiki

DPanel:GetBackgroundColor

DPanel:GetBackgroundColor

  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

Special Pages


Wikis

?

Render Time: 22ms

DB GetPage 3
Generate Html 2
SaveChanges (1) 8
Render Body 0
Render Sidebar 7