DivWide

Sets a panel's width to a fraction of its parent's width.

Arguments

(Optional) Number frac What fraction to set the panel's width to

(Optional) Panel target The panel we should follow, if not its parent

Example

local pnl = vgui.Create("DPanel")
pnl:DivWide(3) -- Sets the panel to 1/3rd the width of its parent

results matching ""

    No results matching ""