Garry's Mod Wiki

vgui.FocusedHasParent

vgui.FocusedHasParent

  boolean vgui.FocusedHasParent( Panel parent )

Description

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

Arguments

1 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

1 boolean
Whether or not the focused panel is a child of the passed one.

Special Pages


Wikis

?

Render Time: 52ms

DB GetPage 34
Generate Html 3
SaveChanges (1) 6
Render Body 0
Render Sidebar 7