DPanel/GetBackgroundColor

From Garry's Mod
Jump to: navigation, search
 DPanel:GetBackgroundColor( )

Contents

DescriptionPanelFunc

Returns the panel's background color.

NOTE

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

Returns

table

Color of the panel's background.

Examples

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
Personal tools
Navigation