Garry's Mod Wiki

DMenu:GetChild

  Panel DMenu:GetChild( number childIndex )

Description

Gets a child by its index.

This is an override/reimplementation of Panel:GetChild for DMenu, documented here only to list its differences from the base panel method.

Arguments

1 number childIndex
The index of the child to get.

Unlike Panel:GetChild, this index starts at 1.

Returns

1 Panel
The child panel, or a nil