vgui.GetHoveredPanel

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

Description

Returns the panel the cursor is hovering above.

WARNING

This returns a cached value that is only updated after rendering and before the next VGUI Think/Layout pass.

ie. it lags one frame behind panel layout and is completely unhelpful for PANEL:Paint if your panels are moving around under the mouse a lot every frame.

Returns

Panel

The panel that the user is currently hovering over with their cursor.
Personal tools
Navigation