๐ŸŸฉattach

CLIENT

:attach( แต–แตƒโฟแต‰หก child, แต‡แต’แต’หก bNoDestroy)

โ–ธ Parameters

pnl child child panel to attach to parent

bool bNoDestroy determines if parent panel not destroyable

โ–ธ Description

Attaches a child panel to a parent. Only works with specialized rlib panels such as rlib.ui.overlay which have func PANEL:Attach( )

โ–ธ Notes

Opposite of uclass.attachpar( )

โ–ธ 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                                 )

pnl_ol:Attach          ( pnl_par                               )
pnl_ol:NoDestroy       ( true                                  )

Last updated