Garry's Mod Wiki

Panel:IsHovered

  boolean Panel:IsHovered()

Description

Returns whether the mouse cursor is hovering over this panel or not

Uses vgui.GetHoveredPanel internally.

Requires Panel:SetMouseInputEnabled to be set to true.

Returns

1 boolean
true if the panel is hovered