vgui.FocusedHasParent

From Garry's Mod
Jump to: navigation, search
 vgui.FocusedHasParent( )

Description

Returns whether the currently focused panel is a child of the given one.

Arguments

Panel parent

The parent panel to check the currently focused one against. This doesn't need to be a direct parent (focused panel can be a child of a child and so on).

Returns

boolean

Whether or not the focused panel is a child of the passed one.
Personal tools
Navigation