Garry's Mod Wiki

Revision Difference

PANEL:TestHover#526477

<function name="TestHover" parent="PANEL" type="hook">⤶ <ishook>yes</ishook>⤶ <description>Called to test if the panel is being "hovered" by the mouse. This will only be called if the panel's parent is being hovered.</description>⤶ <realm>Client</realm>⤶ <added>2020.03.20</added>⤶ <predicted>No</predicted>⤶ ⤶ <args>⤶ <arg name="x" type="number">The x coordinate of the cursor, in screen space.</arg>⤶ <arg name="y" type="number">The y coordinate of the cursor, in screen space.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">Return false when the cursor is not considered on the panel, true if it is considered on the panel. Do not return anything for default behavior</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description></description>⤶ <code>⤶ ⤶ </code>⤶ <output>⤶ </output>⤶ ⤶ </example>⤶