🟩attachpar
CLIENT
:attachpar(
ᵖᵃⁿᵉˡ parent, ᵇᵒᵒˡ bNoDestroy)
▸ Parameters
pnl
parent
parent panel to attach child to
bool
bNoDestroy
determines if parent panel not destroyable
▸ Description
Attaches a child panel to the parent. Only works with specialized rlib panels such as rlib.ui.overlay which have func PANEL:Attach( )
▸ Notes
Opposite of uclass.attach( )
▸ Example
local pnl_ol = ui.new( 'rlib.ui.overlay' )
:register ( 'pnl_root', mod )
local pnl_par = ui.rlib( mod, 'base', pnl_ol, 1 )
:candrag ( false )
:attachpar ( pnl_ol, true )
Last updated