Garry's Mod Wiki

Panel:IsChildHovered

  boolean Panel:IsChildHovered( boolean immediate = false )

Description

Determines whether the mouse cursor is hovered over one of this panel object's children. This is a reverse process using vgui.GetHoveredPanel, and looks upward to find the parent.

Arguments

1 boolean immediate = false
Set to true to check only the immediate children of given panel ( first level )

Returns

1 boolean
Whether or not one of this panel object's children is being hovered over.