Background

Sets the panel's background color.

Arguments

Color col Background color

(Optional) Number rad Corner radius

(Optional) Boolean rtl Round the top left corner?

(Optional) Boolean rtr Round the top right corner?

(Optional) Boolean rbl Round the bottom left corner?

(Optional) Boolean rbr Round the bottom right corner?

Example

local pnl = vgui.Create("DButton")
pnl:ClearPaint()
    :Background(Color(0, 255, 0), 6)

results matching ""

    No results matching ""