SetRemove

Sets a panel to be removed when this panel is clicked.

Arguments

(Optional) Panel target Panel to remove when this panel is clicked

Example

local pnl = vgui.Create("DPanel")

local but = vgui.Create("DButton", pnl)
but:SetRemove(pnl) -- This button will now remove the above panel when it is clicked

results matching ""

    No results matching ""