๐ŸŸฉ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